Borderou de evaluare (job #1815196)

Utilizator FlorinHajaFlorin Gabriel Haja FlorinHaja Data 24 noiembrie 2016 22:15:29
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:21:12: warning: unused variable ‘y’ [-Wunused-variable] int x, y, i, j; ^ user.cpp: In function ‘int main()’: user.cpp:50:39: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] fscanf(f, "%d %d %d\n", &n, &p, &k); ^ user.cpp:50:39: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=] user.cpp:50:39: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘short int*’ [-Wformat=] user.cpp:52:42: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] fscanf(f, "%d %d\n", &d[i], &c[i]); ^ user.cpp:52:42: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=] user.cpp:50: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:52: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:55: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
20ms260kbOK10
38ms268kbIncorect0
40ms264kbIncorect0
58ms264kbOK10
60ms268kbIncorect0
70ms260kbIncorect0
80ms268kbIncorect0
90ms268kbIncorect0
108ms260kbIncorect0
Punctaj total20

Ceva nu functioneaza?