Borderou de evaluare (job #1688007)

Utilizator AndreiTudorSpiruAndrei Spiru AndreiTudorSpiru Data 13 aprilie 2016 10:38:18
Problema 2Numere Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:6:65: error: ‘int j1’ redeclared as different kind of symbol int a[10],b[10],n,i,k,ok,ok1,q,min1=999999,j,nr1,k1,x1,x2,nr2,l,j1,k3,k2,j2,j3,k4,j4,k5; ^ 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:240:1: error: previous declaration of ‘double j1(double)’ __MATHCALL (j1,, (_Mdouble_)); ^ user.cpp: In function ‘int main()’: user.cpp:16:11: warning: left operand of comma operator has no effect [-Wunused-value] {for(i=1;i<=n,j!=i;i++) ^ user.cpp:20:15: warning: left operand of comma operator has no effect [-Wunused-value] for(k=1;k<=n,k!=k1;k++) ^ user.cpp:33:8: error: assignment of function ‘double j1(double)’ for(j1=1;j1<=n;j1++) ^ user.cpp:33:8: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:33:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] for(j1=1;j1<=n;j1++) ^ user.cpp:33:19: error: ISO C++ forbids incrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive] for(j1=1;j1<=n;j1++) ^ user.cpp:33:19: error: lvalue required as increment operand user.cpp:34:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] {if(j!=i&&j!=j1&&i!=j1) ^ user.cpp:34:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] {if(j!=i&&j!=j1&&i!=j1) ^ user.cpp:35:32: error: invalid types ‘int [10][double(double)throw ()]’ for array subscript {nr1=(a[i])*100+a[j]*10+a[j1]; ^ user.cpp:47:8: error: assignment of function ‘double j1(double)’ for(j1=1;j1<=n;j1++) ^ user.cpp:47:8: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:47:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] for(j1=1;j1<=n;j1++) ^ user.cpp:47:19: error: ISO C++ forbids incrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive] for(j1=1;j1<=n;j1++)

Ceva nu functioneaza?