QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#729888#9576. Ordainer of Inexorable Judgmentucup-team5150#Compile Error//C++203.2kb2024-11-09 17:59:142024-11-09 17:59:15

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