Borderou de evaluare (job #1438051)

Utilizator fluture.godlikeGafton Mihnea Alexandru fluture.godlike Data 18 mai 2015 23:10:29
Problema Fence Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:6:78: error: ‘int y1’ redeclared as different kind of symbol int t, m, n, v, x_nord, x_sud, y_vest, y_est, arr[NMAX][NMAX], sum1, x1, x2, y1, y2, maxn; ^ 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:31:12: error: assignment of function ‘double y1(double)’ y1 = y_vest - 1; ^ user.cpp:31:12: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:33:46: error: invalid types ‘int [1007][1007][double(double)throw ()]’ for array subscript for(int i = x1 - 1; i>=1; i--) arr[y1][i] += arr[y1][i+1]; ^ user.cpp:33:60: error: invalid types ‘int [1007][1007][double(double)throw ()]’ for array subscript for(int i = x1 - 1; i>=1; i--) arr[y1][i] += arr[y1][i+1]; ^ user.cpp:34:26: warning: pointer to a function used in arithmetic [-Wpointer-arith] for(int i = y1 - 1; i>=1; i--) arr[i][x1] += arr[i+1][x1]; ^ user.cpp:34:24: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] for(int i = y1 - 1; i>=1; i--) arr[i][x1] += arr[i+1][x1]; ^ user.cpp:35:26: warning: pointer to a function used in arithmetic [-Wpointer-arith] for(int i = y1 - 1; i>=1; i--) ^ user.cpp:35:24: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] for(int i = y1 - 1; i>=1; i--) ^ user.cpp:38:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] for(int i = 1; i<= y1; i++) ^ user.cpp:47:12: error: assignment of function ‘double y1(double)’ y1 = y_est - 1; ^ user.cpp:47:12: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:49:47: error: invalid types ‘int [1007][1007][double(double)throw ()]’ for array subscript for(int i = x1 + 1; i<= n; i++) arr[y1][i] += arr[y1][i-1]; ^ user.cpp:49:61: error: invalid types ‘int [1007][1007][double(double)throw ()]’ for array subscript for(int i = x1 + 1; i<= n; i++) arr[y1][i] += arr[y1][i-1]; ^ user.cpp:50:26: warning: pointer to a function used in arithmetic [-Wpointer-arith] for(int i = y1 - 1; i>= 1; i--) arr[i][x2] += arr[i+1][x2]; ^

Ceva nu functioneaza?