Borderou de evaluare (job #1372252)

Utilizator nacrocRadu C nacroc Data 4 martie 2015 12:26:58
Problema Sudest Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:53:34: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d",&mat[i][j]); ^ user.cpp:56:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d",&v[i]); ^ user.cpp:49:20: warning: variable ‘max’ set but not used [-Wunused-but-set-variable] int i, j, ind, max, sum = 0; ^ user.cpp:47:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sudest.in","r",stdin); ^ user.cpp:48:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sudest.out","w",stdout); ^ user.cpp:50:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:53:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&mat[i][j]); ^ user.cpp:54:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&m); ^ user.cpp:56:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&v[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms300kbOKAY!10
20ms308kbRaspuns gresit!0
30ms308kbRaspuns gresit!0
40ms312kbRaspuns gresit!0
50ms412kbKilled by signal 11(SIGSEGV).0
60ms344kbRaspuns gresit!0
70ms428kbKilled by signal 11(SIGSEGV).0
80ms416kbKilled by signal 11(SIGSEGV).0
94ms384kbOKAY!10
100ms292kbOKAY!10
Punctaj total30

Ceva nu functioneaza?