Borderou de evaluare (job #1815213)

Utilizator FlorinHajaFlorin Gabriel Haja FlorinHaja Data 24 noiembrie 2016 22:27:12
Problema Zmeu2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘void bf()’: user.cpp:20:12: warning: unused variable ‘y’ [-Wunused-variable] int x, y, i, j; ^ user.cpp: In function ‘int main()’: user.cpp:49:39: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short unsigned int*’ [-Wformat=] fscanf(f, "%d %d %d\n", &n, &p, &k); ^ user.cpp:49:39: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short unsigned int*’ [-Wformat=] user.cpp:49:39: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘short unsigned int*’ [-Wformat=] user.cpp:51:42: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short unsigned int*’ [-Wformat=] fscanf(f, "%d %d\n", &d[i], &c[i]); ^ user.cpp:51:42: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short unsigned int*’ [-Wformat=] user.cpp:49:40: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d %d %d\n", &n, &p, &k); ^ user.cpp:51:43: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d %d\n", &d[i], &c[i]); ^ user.cpp:54:37: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d %d\n", &x, &y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms264kbIncorect0
20ms264kbOK10
38ms268kbIncorect0
40ms264kbIncorect0
58ms260kbOK10
60ms264kbIncorect0
70ms268kbIncorect0
80ms264kbIncorect0
90ms264kbIncorect0
1012ms260kbIncorect0
Punctaj total20

Ceva nu functioneaza?