QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#729888 | #9576. Ordainer of Inexorable Judgment | ucup-team5150# | Compile Error | / | / | C++20 | 3.2kb | 2024-11-09 17:59:14 | 2024-11-09 17:59:15 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code:27:10: error: ‘int y0’ redeclared as different kind of entity 27 | int n,x0,y0,d; | ^~ 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:220:1: note: previous declaration ‘double y0(double)’ 220 | __MATHCALL (y0,, (_Mdouble_)); | ^~~~~~~~~~ answer.code: In function ‘int main()’: answer.code:78:31: error: invalid conversion from ‘double (*)(double) noexcept’ to ‘int’ [-fpermissive] 78 | read(n),read(x0),read(y0),read(d),read(t_); | ^~ | | | double (*)(double) noexcept answer.code:20:16: note: initializing argument 1 of ‘void read(int&)’ 20 | void read(int &X) | ~~~~~^ answer.code:78:31: error: cannot bind rvalue ‘(int)y0’ to ‘int&’ 78 | read(n),read(x0),read(y0),read(d),read(t_); | ^~ answer.code:80:25: error: invalid operands of types ‘double(double) noexcept’ and ‘const long double’ to binary ‘operator+’ 80 | ld u=x0+eps,v=y0+eps; | ~~^~~~ | | | | | const long double | double(double) noexcept