Borderou de evaluare (job #1349385)

Utilizator nacrocRadu C nacroc Data 20 februarie 2015 10:21:59
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:50:34: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d",&mat[i][j]); ^ user.cpp:53:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d",&v[i]); ^ user.cpp:46:20: warning: variable ‘max’ set but not used [-Wunused-but-set-variable] int i, j, ind, max, sum = 0; ^ user.cpp:44: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:45: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:47:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:50: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:51:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&m); ^ user.cpp:53: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
10ms280kbOKAY!10
20ms296kbRaspuns gresit!0
30ms284kbRaspuns gresit!0
40ms300kbRaspuns gresit!0
50ms388kbKilled by signal 11(SIGSEGV).0
60ms324kbRaspuns gresit!0
70ms400kbKilled by signal 11(SIGSEGV).0
80ms396kbKilled by signal 11(SIGSEGV).0
90ms376kbOKAY!10
100ms276kbOKAY!10
Punctaj total30

Ceva nu functioneaza?