QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#751479 | #9574. Strips | ucup-team2454# | Compile Error | / | / | C++20 | 2.6kb | 2024-11-15 18:58:43 | 2024-11-15 18:58:45 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘void PRINT(int)’: answer.code:11:5: error: ‘printf’ was not declared in this scope 11 | printf("%d ",c[p]); | ^~~~~~ answer.code:1:1: note: ‘printf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’? +++ |+#include <cstdio> 1 | answer.code: In member function ‘void Seg::chg(int, node, int, int, int)’: answer.code:37:14: error: ‘min’ was not declared in this scope; did you mean ‘mid’? 37 | t[p]=min(t[lp],t[rp]); | ^~~ | mid answer.code: In member function ‘node Seg::qry(int, int, int, int, int)’: answer.code:44:16: error: ‘min’ was not declared in this scope; did you mean ‘mid’? 44 | return min(qry(x,mid,l,mid,lp),qry(mid+1,y,mid+1,r,rp)); | ^~~ | mid answer.code: In function ‘void solve()’: answer.code:48:5: error: ‘scanf’ was not declared in this scope 48 | scanf("%d%d%d%d",&n,&m,&k,&w); | ^~~~~ answer.code:51:5: error: ‘sort’ was not declared in this scope; did you mean ‘short’? 51 | sort(a+1,a+n+1); | ^~~~ | short answer.code:55:27: error: ‘unique’ was not declared in this scope 55 | sort(c+1,c+cnt+1);cnt=unique(c+1,c+cnt+1)-c-1; | ^~~~~~ answer.code:2:12: error: ‘lower_bound’ was not declared in this scope 2 | #define lb lower_bound | ^~~~~~~~~~~ answer.code:60:11: note: in expansion of macro ‘lb’ 60 | p=lb(b+1,b+m+1,c[i])-b; | ^~ answer.code:2:12: error: ‘lower_bound’ was not declared in this scope 2 | #define lb lower_bound | ^~~~~~~~~~~ answer.code:83:11: note: in expansion of macro ‘lb’ 83 | p=lb(a+1,a+n+1,c[l])-a; | ^~ answer.code:88:28: error: ‘puts’ was not declared in this scope 88 | if(tmp.val==inf)return puts("-1"),void(); | ^~~~ answer.code:89:5: error: ‘printf’ was not declared in this scope 89 | printf("%d\n",tmp.val); | ^~~~~~ answer.code:89:5: note: ‘printf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’? answer.code:91:5: error: ‘puts’ was not declared in this scope 91 | puts(""); | ^~~~ answer.code: In function ‘int main()’: answer.code:101:11: error: ‘scanf’ was not declared in this scope 101 | int t;scanf("%d",&t); | ^~~~~