Borderou de evaluare (job #1295623)

Utilizator akaprosAna Kapros akapros Data 19 decembrie 2014 21:28:26
Problema Points Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:4:27: error: ‘int y1’ redeclared as different kind of symbol int n,i,j,p,q,nr,x1,x2,x3,y1,y2,y3; ^ 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/cstdio:41, 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:17:12: error: assignment of function ‘double y1(double)’ for (y1=0;y1<=1;y1++) ^ user.cpp:17:12: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:17:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] for (y1=0;y1<=1;y1++) ^ user.cpp:17:23: error: ISO C++ forbids incrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive] for (y1=0;y1<=1;y1++) ^ user.cpp:17:23: error: lvalue required as increment operand user.cpp:21:25: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator-’ if (abs((x3-x1)*(y2-y1)-(x2-x1)*(y3-y1))%2==0) ^ user.cpp:21:41: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator-’ if (abs((x3-x1)*(y2-y1)-(x2-x1)*(y3-y1))%2==0) ^ user.cpp:23:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if ((x1==x2)&&(y1==y2)&&(x2==x3)&&(y2==y3)) ^ user.cpp:24:26: error: invalid types ‘long long int [2][double(double)throw ()]’ for array subscript sol=sol+(a[x1][y1]*1LL); else ^ user.cpp:25:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if ((x1==x2)&&(y1==y2)) ^ user.cpp:26:26: error: invalid types ‘long long int [2][double(double)throw ()]’ for array subscript sol=sol+(a[x1][y1]*a[x3][y3]*1LL); else ^ user.cpp:27:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if ((x1==x3)&&(y1==y3)) ^ user.cpp:28:26: error: invalid types ‘long long int [2][double(double)throw ()]’ for array subscript sol=sol+(a[x1][y1]*a[x2][y2]*1LL); else ^ user.cpp:30:26: error: invalid types ‘long long int [2][double(double)throw ()]’ for array subscript sol=sol+(a[x1][y1]*a[x2][y2]*1LL); else ^

Ceva nu functioneaza?