QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#788367 | #9570. Binary Tree | ucup-team4991# | Compile Error | / | / | C++14 | 2.1kb | 2024-11-27 16:42:23 | 2024-11-27 16:42:24 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code:22:37: error: ‘int j1 [200005]’ redeclared as different kind of entity 22 | int dep[maxn+5],kf[maxn+5],j1[maxn+5],j2[maxn+5]; | ^ In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/c++/13/bits/os_defines.h:39, from /usr/include/x86_64-linux-gnu/c++/13/bits/c++config.h:679, from /usr/include/c++/13/cassert:43, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:33, from answer.code:1: /usr/include/x86_64-linux-gnu/bits/mathcalls.h:218:1: note: previous declaration ‘double j1(double)’ 218 | __MATHCALL (j1,, (_Mdouble_)); | ^~~~~~~~~~ answer.code: In function ‘void solve()’: answer.code:56:17: warning: pointer to a function used in arithmetic [-Wpointer-arith] 56 | j1[j]=dep[j]; | ^ answer.code:56:18: error: assignment of read-only location ‘*(j1 + ((sizetype)j))’ 56 | j1[j]=dep[j]; | ~~~~~^~~~~~~ answer.code:65:20: warning: pointer to a function used in arithmetic [-Wpointer-arith] 65 | if(j1[j]<j2[j])h=0; | ^ answer.code:65:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 65 | if(j1[j]<j2[j])h=0; | ~~~~~^~~~~~ answer.code:66:25: warning: pointer to a function used in arithmetic [-Wpointer-arith] 66 | else if(j1[j]==j2[j])h=1; | ^ answer.code:66:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 66 | else if(j1[j]==j2[j])h=1; | ~~~~~^~~~~~~