QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#671809#9434. Italian Cuisineezteam1#Compile Error//C++142.7kb2024-10-24 14:32:492024-10-24 14:32:50

Details

answer.code:52:20: error: ‘int y0’ redeclared as different kind of entity
   52 | int n,x[N],y[N],x0,y0,r0;
      |                    ^~
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 ‘bool check(int, int)’:
answer.code:79:25: error: invalid operands of types ‘long double’ and ‘double(double) throw ()’ {aka ‘double(double)’} to binary ‘operator*’
   79 |         db d=fabs(a*x0+b*y0+c)/sqrt(a*a+b*b);
      |                        ~^~~
      |                        | |
      |                        | double(double) throw () {aka double(double)}
      |                        long double
answer.code: In function ‘bool dir(int, int)’:
answer.code:86:27: error: invalid operands of types ‘long double’ and ‘double(double) throw ()’ {aka ‘double(double)’} to binary ‘operator*’
   86 |         return dcmp(a*x0+b*y0+c,0)<=0;
      |                          ~^~~
      |                          | |
      |                          | double(double) throw () {aka double(double)}
      |                          long double
answer.code: In function ‘int main()’:
answer.code:95:38: error: assignment of function ‘double y0(double)’
   95 |                 n=read(),x0=read(),y0=read(),r0=read();
      |                                    ~~^~~~~~~