Borderou de evaluare (job #1264423)

Utilizator ConstantinPetroviciPetrovici Constantin ConstantinPetrovici Data 15 noiembrie 2014 19:58:09
Problema Muzeu Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:13:22: error: redefinition of ‘int x’ void lee( int x ,int x ) ^ user.cpp:13:15: error: ‘int x’ previously declared here void lee( int x ,int x ) ^ user.cpp: In function ‘void lee(int)’: user.cpp:15:17: error: ‘y’ was not declared in this scope mat [ x ] [ y ] = 0 ; ^ user.cpp:24:24: error: ‘d’ was not declared in this scope int xnou=x+d[i]; ^ user.cpp: In function ‘int main()’: user.cpp:56:29: error: too many arguments to function ‘void lee(int)’ lee ( i , j ); ^ user.cpp:13:6: note: declared here void lee( int x ,int x ) ^ user.cpp:60:30: error: too many arguments to function ‘void lee(int)’ if ( lee ( i , j ) == 1 ) printf ("-1 "); ^ user.cpp:13:6: note: declared here void lee( int x ,int x ) ^ user.cpp:60:35: error: invalid operands of types ‘void’ and ‘int’ to binary ‘operator==’ if ( lee ( i , j ) == 1 ) printf ("-1 "); ^ user.cpp:37:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("muzeu.in" , "r" , stdin ) ; ^ user.cpp:38:43: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("muzeu.out" , "w" , stdout ) ; ^ user.cpp:39:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d" , &n ) ; ^ user.cpp:43:50: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d" , &mat [ i ] [ j ] ) ; ^

Ceva nu functioneaza?