Borderou de evaluare (job #2104339)

Utilizator tziplea_stefanTiplea Stefan tziplea_stefan Data 11 ianuarie 2018 16:22:53
Problema Tort3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:18:27: error: ‘int y1’ redeclared as different kind of symbol int N, M, i, j, prec, x1, y1, x2, y2; ^ In file included from /usr/include/features.h:357:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39, from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:420, from /usr/include/c++/4.8/iosfwd:38, from /usr/include/c++/4.8/ios:38, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from user.cpp:1: /usr/include/i386-linux-gnu/bits/mathcalls.h:243:1: error: previous declaration of ‘double y1(double)’ __MATHCALL (y1,, (_Mdouble_)); ^ user.cpp: In function ‘int main()’: user.cpp:95:11: error: assignment of function ‘double y1(double)’ y1=F[cnt].c-F[cnt].lat+1; ^ user.cpp:95:11: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:96:40: warning: pointer to a function used in arithmetic [-Wpointer-arith] if (Query(x2, y2)-Query(x2, y1-1)-Query(x1-1, y2)+Query(x1-1, y1-1)==0) ^ user.cpp:96:39: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] if (Query(x2, y2)-Query(x2, y1-1)-Query(x1-1, y2)+Query(x1-1, y1-1)==0) ^ user.cpp:49:5: error: initializing argument 2 of ‘int Query(int, int)’ [-fpermissive] int Query(int X, int Y) ^ user.cpp:96:74: warning: pointer to a function used in arithmetic [-Wpointer-arith] if (Query(x2, y2)-Query(x2, y1-1)-Query(x1-1, y2)+Query(x1-1, y1-1)==0) ^ user.cpp:96:73: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] if (Query(x2, y2)-Query(x2, y1-1)-Query(x1-1, y2)+Query(x1-1, y1-1)==0) ^ user.cpp:49:5: error: initializing argument 2 of ‘int Query(int, int)’ [-fpermissive] int Query(int X, int Y) ^ user.cpp:99:26: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] Update(x1, y1); ^ user.cpp:41:6: error: initializing argument 2 of ‘void Update(int, int)’ [-fpermissive] void Update(int X, int Y) ^ user.cpp:101:26: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] Update(x2, y1); ^ user.cpp:41:6: error: initializing argument 2 of ‘void Update(int, int)’ [-fpermissive] void Update(int X, int Y) ^

Ceva nu functioneaza?