Borderou de evaluare (job #1423676)

Utilizator StarGold2Emanuel Nrx StarGold2 Data 22 aprilie 2015 11:34:31
Problema Lenes Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:11:31: error: ‘int j1’ redeclared as different kind of symbol int N, M, i, j, K, ok, minim, j1, j2; ^ 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 ‘void Cerinta_A()’: user.cpp:49:14: error: assignment of function ‘double j1(double)’ j1 = 1; ^ user.cpp:49:14: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:51:22: warning: pointer to a function used in arithmetic [-Wpointer-arith] while(j1 + j2 - 2 < k1){ ^ user.cpp:51:27: warning: pointer to a function used in arithmetic [-Wpointer-arith] while(j1 + j2 - 2 < k1){ ^ user.cpp:51:31: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] while(j1 + j2 - 2 < k1){ ^ user.cpp:52:28: error: invalid types ‘int [512][double(double)throw ()]’ for array subscript if(A[i-1][j1] < A[i+1][j2]) ^ user.cpp:53:37: error: ISO C++ forbids incrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive] sum += A[i-1][j1++]; ^ user.cpp:53:37: error: lvalue required as increment operand user.cpp: In function ‘void Cerinta_B()’: user.cpp:70:18: error: assignment of function ‘double j1(double)’ for(j1 = 1; j1 <= k1; j1 ++){ ^ user.cpp:70:18: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:70:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] for(j1 = 1; j1 <= k1; j1 ++){ ^ user.cpp:70:36: error: ISO C++ forbids incrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive] for(j1 = 1; j1 <= k1; j1 ++){ ^ user.cpp:70:36: error: lvalue required as increment operand user.cpp:71:33: error: invalid types ‘int [512][double(double)throw ()]’ for array subscript sum1 += A[i-1][j1]; ^

Ceva nu functioneaza?