Borderou de evaluare (job #1390962)

Utilizator AlexNiuclaeNiculae Alexandru Vlad AlexNiuclae Data 17 martie 2015 15:01:57
Problema Simetric Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:8:31: error: ‘int y1’ redeclared as different kind of symbol int n , m , i , j , x1 , x2 , y1 , y2 , sol; ^ 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:30:28: error: assignment of function ‘double y1(double)’ x1 = i; x2 = i; y1 = j; y2 = j; ^ user.cpp:30:28: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:32:24: error: invalid types ‘int [410][double(double)throw ()]’ for array subscript while (A[x1][y1] == A[x2][y2] && A[x1][y1] != -1) x1++ , y2++; ^ user.cpp:32:50: error: invalid types ‘int [410][double(double)throw ()]’ for array subscript while (A[x1][y1] == A[x2][y2] && A[x1][y1] != -1) x1++ , y2++; ^ user.cpp:14:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("simetric.in","r",stdin); ^ user.cpp:15:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("simetric.out","w",stdout); ^ user.cpp:17:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &n, &m); ^ user.cpp:21:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &A[i][j]); ^

Ceva nu functioneaza?