QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#636641 | #9425. Generated String | ZhangYiDe | Compile Error | / | / | C++14 | 4.8kb | 2024-10-13 01:24:55 | 2024-10-13 01:24:55 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code:130:15: error: ‘int y0 [100010]’ redeclared as different kind of entity 130 | int x0[N],y0[N],x1[N],y1[N]; | ^ 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:2: /usr/include/x86_64-linux-gnu/bits/mathcalls.h:220:1: note: previous declaration ‘double y0(double)’ 220 | __MATHCALL (y0,, (_Mdouble_)); | ^~~~~~~~~~ answer.code:130:27: error: ‘int y1 [100010]’ redeclared as different kind of entity 130 | int x0[N],y0[N],x1[N],y1[N]; | ^ /usr/include/x86_64-linux-gnu/bits/mathcalls.h:221:1: note: previous declaration ‘double y1(double)’ 221 | __MATHCALL (y1,, (_Mdouble_)); | ^~~~~~~~~~ answer.code: In function ‘int main()’: answer.code:206:27: error: cannot convert ‘double (*)(double) throw ()’ {aka ‘double (*)(double)’} to ‘int*’ 206 | curOP=1,work(s[1],y0,y1); | ^~ | | | double (*)(double) throw () {aka double (*)(double)} answer.code:157:30: note: initializing argument 2 of ‘void work(Str*, int*, int*)’ 157 | inline void work(Str *S,int *L,int *R) | ~~~~~^ answer.code:210:54: warning: pointer to a function used in arithmetic [-Wpointer-arith] 210 | if(Ans[i]==-1)A+=(P){0,1,i,x0[i],y0[i]}; | ^ answer.code:210:54: error: invalid conversion from ‘double (*)(double) throw ()’ {aka ‘double (*)(double)’} to ‘int’ [-fpermissive] 210 | if(Ans[i]==-1)A+=(P){0,1,i,x0[i],y0[i]}; | ^ | | | double (*)(double) throw () {aka double (*)(double)} answer.code:213:37: warning: pointer to a function used in arithmetic [-Wpointer-arith] 213 | x0[i]--,y0[i]--; | ^ answer.code:213:37: warning: ISO C++ forbids decrementing a pointer of type ‘double (*)(double) throw ()’ {aka ‘double (*)(double)’} [-Wpointer-arith] 213 | x0[i]--,y0[i]--; | ~~~~^ answer.code:213:37: error: lvalue required as decrement operand 213 | x0[i]--,y0[i]--; | ^ answer.code:214:49: warning: pointer to a function used in arithmetic [-Wpointer-arith] 214 | A+=(P){1, 1,i,x0[i],y0[i]}; | ^ answer.code:214:49: error: invalid conversion from ‘double (*)(double) throw ()’ {aka ‘double (*)(double)’} to ‘int’ [-fpermissive] 214 | A+=(P){1, 1,i,x0[i],y0[i]}; | ^ | | | double (*)(double) throw () {aka double (*)(double)} answer.code:215:49: warning: pointer to a function used in arithmetic [-Wpointer-arith] 215 | A+=(P){1,-1,i,x0[i],y1[i]}; | ^ answer.code:215:49: error: invalid conversion from ‘double (*)(double) throw ()’ {aka ‘double (*)(double)’} to ‘int’ [-fpermissive] 215 | A+=(P){1,-1,i,x0[i],y1[i]}; | ^ | | | double (*)(double) throw () {aka double (*)(double)} answer.code:216:49: warning: pointer to a function used in arithmetic [-Wpointer-arith] 216 | A+=(P){1,-1,i,x1[i],y0[i]}; | ^ answer.code:216:49: error: invalid conversion from ‘double (*)(double) throw ()’ {aka ‘double (*)(double)’} to ‘int’ [-fpermissive] 216 | A+=(P){1,-1,i,x1[i],y0[i]}; | ^ | | | double (*)(double) throw () {aka double (*)(double)} answer.code:217:49: warning: pointer to a function used in arithmetic [-Wpointer-arith] 217 | A+=(P){1, 1,i,x1[i],y1[i]}; | ^ answer.code:217:49: error: invalid conversion from ‘double (*)(double) throw ()’ {aka ‘double (*)(double)’} to ‘int’ [-fpermissive] 217 | ...