Borderou de evaluare (job #1292749)

Utilizator sulzandreiandrei sulzandrei Data 14 decembrie 2014 18:53:37
Problema Berarii2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void citire(int&, int&, int&)’: user.cpp:20:25: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=] fscanf (f, "%ld", &N); ^ user.cpp:21:25: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=] fscanf (f, "%ld", &M); ^ user.cpp:27:37: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=] fscanf (f, "%ld", &varf1); ^ user.cpp:28:37: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=] fscanf (f, "%ld", &varf2); ^ user.cpp: In function ‘int main()’: user.cpp:79:27: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int’ [-Wformat=] fprintf(g, "%ld\n", nr); ^ user.cpp:82:34: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int’ [-Wformat=] fprintf(g, "%ld\n", i); ^ user.cpp: In function ‘void citire(int&, int&, int&)’: user.cpp:20:26: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf (f, "%ld", &N); ^ user.cpp:21:26: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf (f, "%ld", &M); ^ user.cpp:22:25: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf (f, "%i", &P); ^ user.cpp:27:38: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf (f, "%ld", &varf1); ^ user.cpp:28:38: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf (f, "%ld", &varf2); ^ user.cpp:44:32: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf (f, "%i", &b[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms432kbOK5
20ms436kbOK5
30ms432kbOK5
40ms432kbOK5
50ms436kbOK5
60ms432kbOK5
70ms436kbOK5
80ms440kbOK5
90ms444kbOK5
104ms592kbOK5
118ms672kbOK5
1256ms2100kbOK5
13656ms16176kbOK5
1416ms828kbOK5
15720ms16600kbOK5
16596ms12164kbOK5
17668ms13900kbOK5
18748ms18328kbOK5
19808ms17532kbOK5
20912ms19380kbOK5
Punctaj total100

Ceva nu functioneaza?