QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#778572 | #9253. Prism Palace | ucup-team5716# | Compile Error | / | / | C++14 | 2.5kb | 2024-11-24 15:15:22 | 2024-11-24 15:15:22 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code:50:23: error: ‘int y0 [200050]’ redeclared as different kind of entity 50 | int n,x0[maxn],y0[maxn],x[maxn],y[maxn],p[maxn]; | ^ 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/bits/requires_hosted.h:31, from /usr/include/c++/13/iostream:38, from answer.code:1: /usr/include/x86_64-linux-gnu/bits/mathcalls.h:220:1: note: previous declaration ‘double y0(double)’ 220 | __MATHCALL (y0,, (_Mdouble_)); | ^~~~~~~~~~ answer.code: In function ‘int main()’: answer.code:62:57: warning: pointer to a function used in arithmetic [-Wpointer-arith] 62 | for(int i = 1; i <= n; i ++) x0[i] = read(),y0[i] = read(); | ^ answer.code:62:59: error: assignment of read-only location ‘*(y0 + ((sizetype)i))’ 62 | for(int i = 1; i <= n; i ++) x0[i] = read(),y0[i] = read(); | ~~~~~~^~~~~~~~ answer.code:63:27: warning: pointer to a function used in arithmetic [-Wpointer-arith] 63 | x0[0] = x0[n],y0[0] = y0[n]; | ^ answer.code:63:35: warning: pointer to a function used in arithmetic [-Wpointer-arith] 63 | x0[0] = x0[n],y0[0] = y0[n]; | ^ answer.code:63:29: error: assignment of read-only location ‘* y0’ 63 | x0[0] = x0[n],y0[0] = y0[n]; | ~~~~~~^~~~~~~ answer.code:64:63: warning: pointer to a function used in arithmetic [-Wpointer-arith] 64 | for(int i = 1; i <= n; i ++) d[i] = atan2l(y[i] = y0[i] - y0[i - 1],x[i] = x0[i] - x0[i - 1]); | ^ answer.code:64:75: warning: pointer to a function used in arithmetic [-Wpointer-arith] 64 | for(int i = 1; i <= n; i ++) d[i] = atan2l(y[i] = y0[i] - y0[i - 1],x[i] = x0[i] - x0[i - 1]); | ^ cc1plus: warning: pointer to a function used in arithmetic [-Wpointer-arith] answer.code:64:65: error: ISO C++ forbids using pointer to a function in subtraction [-fpermissive] 64 | for(int i = 1; i <= n; i ++) d[i] = atan2l(y[i] = y0[i] - y0[i - 1],x[i] = x0[i] - x0[i - 1]); | ~~~~~~^~~~~~~~~~~