Borderou de evaluare (job #1253567)

Utilizator StarGold2Emanuel Nrx StarGold2 Data 1 noiembrie 2014 14:40:38
Problema Koba Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:9:5: error: ‘int j1’ redeclared as different kind of symbol int j1, j2, j3, sum, jc, nr; ^ 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:28:8: error: assignment of function ‘double j1(double)’ j1 = x2; ^ user.cpp:28:8: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:33:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] while(i <= n && (j1 != x1 || j2 != x2 || j3 != x3)){ ^ user.cpp:34:25: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator*’ jc = (j3 + j2 * j1) % 10; ^ user.cpp:35:12: error: assignment of function ‘double j1(double)’ j1 = j2; ^ user.cpp:35:12: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:65:12: error: assignment of function ‘double j1(double)’ j1 = x2; ^ user.cpp:65:12: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:70:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] while(i <= n && (j1 != x1 || j2 != x2 || j3 != x3)){ ^ user.cpp:71:29: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator*’ jc = (j3 + j2 * j1) % 10; ^ user.cpp:72:16: error: assignment of function ‘double j1(double)’ j1 = j2; ^ user.cpp:72:16: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment

Ceva nu functioneaza?