Borderou de evaluare (job #1349398)

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

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:51:34: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d",&mat[i][j]); ^ user.cpp:54:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d",&v[i]); ^ user.cpp:47:20: warning: variable ‘max’ set but not used [-Wunused-but-set-variable] int i, j, ind, max, sum = 0; ^ user.cpp:45: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:46: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:48:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:51: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:52:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&m); ^ user.cpp:54: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
10ms272kbRaspuns gresit!0
20ms380kbKilled by signal 11(SIGSEGV).0
30ms380kbKilled by signal 11(SIGSEGV).0
40ms296kbRaspuns gresit!0
50ms384kbKilled by signal 11(SIGSEGV).0
60ms316kbRaspuns gresit!0
70ms392kbKilled by signal 11(SIGSEGV).0
80ms400kbKilled by signal 11(SIGSEGV).0
90ms344kbRaspuns gresit!0
100ms272kbOKAY!10
Punctaj total10

Ceva nu functioneaza?