QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#784333 | #6660. 택시 여행 | Huluobo | Compile Error | / | / | C++17 | 2.4kb | 2024-11-26 14:39:59 | 2024-11-26 14:40:00 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘void gsz(long long int, long long int, long long int*)’: answer.code:17:42: error: too few arguments to function ‘void gsz(long long int, long long int, long long int*)’ 17 | dep[v[0]]=dep[u]+v[1],gsz(v[0],u),sz[u]+=sz[v[0]]; | ~~~^~~~~~~~ answer.code:14:6: note: declared here 14 | void gsz(int u,int f,int *dep){ | ^~~ answer.code: In function ‘void groot(long long int, long long int, long long int)’: answer.code:22:23: error: cannot convert ‘std::array<long long int, 2>’ to ‘long long int’ 22 | groot(v,u,tot),mx=max(mx,sz[v[0]]); | ^ | | | std::array<long long int, 2> answer.code:19:16: note: initializing argument 1 of ‘void groot(long long int, long long int, long long int)’ 19 | void groot(int u,int f,int tot){ | ^ answer.code: In function ‘void dfs(long long int, long long int)’: answer.code:28:34: error: ‘f’ was not declared in this scope 28 | for(auto v:g[u])if(v[0]!=f&&!vis[v[0]]){ | ^ answer.code: At global scope: answer.code:34:5: error: conflicting declaration ‘long long int rt [100009]’ 34 | int rt[100009],lcnt; | ^~ answer.code:10:19: note: previous declaration as ‘long long int rt’ 10 | int n,ord[100009],rt,a[100009],b[100009],lvl[100009],fa[100009],dep[20][100009],sz[100009]; | ^~ answer.code: In member function ‘long long int Line::c(long long int)’: answer.code:35:44: error: invalid conversion from ‘long long int*’ to ‘long long int’ [-fpermissive] 35 | struct Line{int k,x;int c(int x){return k*x+b;}}buf[2000009]; | ~~~^~ | | | long long int* answer.code: In member function ‘long long int segtree::query(long long int, long long int, long long int, long long int)’: answer.code:51:26: error: lvalue required as left operand of assignment 51 | int mid=l+r>>=1; | ~^~ answer.code: In function ‘void insert(long long int, long long int)’: answer.code:60:38: error: invalid types ‘long long int[long long int]’ for array subscript 60 | tr.upd(lcnt,0,MAXN,rt[u]); | ^ answer.code: In function ‘long long int query(long long int)’: answer.code:66:57: error: invalid types ‘long long int[long long int]’ for array subscript 66 | res=min(res,tr.query(dep[d][p],0,MAXN,rt[u])); | ^