Borderou de evaluare (job #1599961)

Utilizator maria.sinteaMaria Sintea maria.sintea Data 14 februarie 2016 16:02:52
Problema Livada Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 12

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:12:35: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d %ld %ld", &m, &n, &p); ^ user.cpp:19:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘char*’ [-Wformat=] scanf("%d ", &a[i][0]); ^ user.cpp:24:34: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘char*’ [-Wformat=] scanf("%d ", &a[i][j]); ^ user.cpp:38:29: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d\n%d", nr, max); ^ user.cpp:38:29: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] user.cpp:9:31: warning: variable ‘ok2’ set but not used [-Wunused-but-set-variable] long int m, i, nr=0, ok1, ok2, maxi,max; ^ user.cpp:7:35: 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:8:37: 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:12:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %ld %ld", &m, &n, &p); ^ user.cpp:19:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d ", &a[i][0]); ^ user.cpp:24:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d ", &a[i][j]); ^ user.cpp:36:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("\n"); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms344kbPrima linie corecta!4
20ms344kbPrima linie corecta!4
328ms1176kbRaspuns gresit!0
464ms1264kbRaspuns gresit!0
5140ms1452kbRaspuns gresit!0
6232ms1232kbRaspuns gresit!0
7232ms1232kbRaspuns gresit!0
8224ms472kbRaspuns gresit!0
9232ms1660kbRaspuns gresit!0
10228ms944kbPrima linie corecta!4
Punctaj total12

Ceva nu functioneaza?