Borderou de evaluare (job #1103392)

Utilizator TBLam99Tran Bach Lam TBLam99 Data 9 februarie 2014 15:51:28
Problema Plagiat Status done
Runda Algoritmiada 2014 - Runda 2, Clasele 9-10 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:12:5: error: ‘int j1’ redeclared as different kind of symbol int j1,j2,j3; ^ In file included from /usr/include/features.h:346:0, from /usr/include/stdio.h:28, from user.cpp:1: /usr/include/bits/mathcalls.h:239:1: error: previous declaration of ‘double j1(double)’ __MATHCALL (j1,, (_Mdouble_)); ^ user.cpp: In function ‘int main()’: user.cpp:45:47: error: assignment of function ‘double j1(double)’ for(j1=1;j1<=k && ok==0;++j1) ^ user.cpp:45:47: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:45:54: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] for(j1=1;j1<=k && ok==0;++j1) ^ user.cpp:45:67: error: ISO C++ forbids incrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive] for(j1=1;j1<=k && ok==0;++j1) ^ user.cpp:45:67: error: lvalue required as increment operand user.cpp:48:60: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(j1!=i1 && j2!=i2 && j3!=i3) ^ user.cpp:49:73: error: invalid types ‘POINT [401][double(double)throw ()]’ for array subscript if((f[j2].x-f[j1].x)==(f[j3].x-f[j2].x) && (f[j2].y-f[j1].y)==(f[j3].y-f[j2].y)) ^ user.cpp:49:113: error: invalid types ‘POINT [401][double(double)throw ()]’ for array subscript if((f[j2].x-f[j1].x)==(f[j3].x-f[j2].x) && (f[j2].y-f[j1].y)==(f[j3].y-f[j2].y)) ^ user.cpp:55:86: error: invalid types ‘POINT [401][double(double)throw ()]’ for array subscript verif1.x=f[i1].x-f[j1].x; ^ user.cpp:56:86: error: invalid types ‘POINT [401][double(double)throw ()]’ for array subscript verif1.y=f[i1].y-f[j1].y; ^ user.cpp:48:55: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if(j1!=i1 && j2!=i2 && j3!=i3) ^

Ceva nu functioneaza?