Borderou de evaluare (job #1349374)

Utilizator nacrocRadu C nacroc Data 20 februarie 2015 10:15:09
Problema Sudest Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

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
10ms276kbOKAY!10
20ms288kbRaspuns gresit!0
30ms280kbRaspuns gresit!0
40ms288kbRaspuns gresit!0
50ms632kbKilled by signal 11(SIGSEGV).0
60ms312kbRaspuns gresit!0
70msDepăşitMemory limit exceeded.0
80ms604kbKilled by signal 11(SIGSEGV).0
90ms316kbKilled by signal 11(SIGSEGV).0
100ms272kbOKAY!10
Punctaj total20

Ceva nu functioneaza?