Borderou de evaluare (job #1580708)

Utilizator alex_HarryBabalau Alexandru alex_Harry Data 26 ianuarie 2016 01:16:06
Problema Tri2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:14:8: error: ‘int y0’ redeclared as different kind of symbol int x0,y0; ^ 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:242:1: error: previous declaration of ‘double y0(double)’ __MATHCALL (y0,, (_Mdouble_)); ^ user.cpp: In function ‘bool cmp(P, P)’: user.cpp:30:29: warning: pointer to a function used in arithmetic [-Wpointer-arith] return (long long)(y0-a.y)*(long long)(x0-b.x)<(long long)(x0-a.x)*(long long)(y0-b.y); ^ user.cpp:30:89: warning: pointer to a function used in arithmetic [-Wpointer-arith] return (long long)(y0-a.y)*(long long)(x0-b.x)<(long long)(x0-a.x)*(long long)(y0-b.y); ^ user.cpp: In function ‘void precalcBelow(int)’: user.cpp:55:7: error: assignment of function ‘double y0(double)’ y0=Array[start].y; ^ user.cpp:55:7: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp: In function ‘void solveQuery(int, int, int)’: user.cpp:74:28: warning: unused variable ‘p2’ [-Wunused-variable] int Max=Array[a].y,p=a,p2,Max2=0,Min=0x3f3f3f3f; ^

Ceva nu functioneaza?