Borderou de evaluare (job #1452180)

Utilizator GrecuDianaSorinaGrecu Diana-Sorina GrecuDianaSorina Data 20 iunie 2015 11:06:07
Problema Livada Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 8

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:15:31: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d%d%d", &n, &m, &v); ^ user.cpp:15:31: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp:15:31: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:20:33: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d", &a[i][j]); ^ user.cpp:61:19: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d", k); ^ user.cpp:63:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d",max1); ^ user.cpp:12:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("livada.in","r", stdin); ^ user.cpp:13:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("livada.out","w", stdout); ^ user.cpp:15:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d", &n, &m, &v); ^ user.cpp:20:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &a[i][j]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
124ms5784kbPrima linie corecta!4
224ms5784kbPrima linie corecta!4
3Depăşit6012kbTime limit exceeded.0
468ms544kbKilled by signal 11(SIGSEGV).0
5124ms548kbKilled by signal 11(SIGSEGV).0
6224ms492kbKilled by signal 11(SIGSEGV).0
7236ms488kbKilled by signal 11(SIGSEGV).0
8236ms956kbKilled by signal 11(SIGSEGV).0
9244ms560kbKilled by signal 11(SIGSEGV).0
10156ms2176kbWall time limit exceeded.0
Punctaj total8

Ceva nu functioneaza?