Borderou de evaluare (job #1292748)

Utilizator sulzandreiandrei sulzandrei Data 14 decembrie 2014 18:53:25
Problema Berarii2 Status done
Runda Teme Pregatire ACM Unibuc 2014, Anul I 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
10ms436kbOK5
20ms432kbOK5
30ms432kbOK5
40ms436kbOK5
50ms432kbOK5
60ms436kbOK5
70ms432kbOK5
80ms436kbOK5
90ms448kbOK5
104ms592kbOK5
118ms668kbOK5
1256ms2108kbOK5
13648ms16172kbOK5
1416ms828kbOK5
15740ms16600kbOK5
16604ms12168kbOK5
17672ms13900kbOK5
18744ms18336kbOK5
19808ms17536kbOK5
20880ms19376kbOK5
Punctaj total100

Ceva nu functioneaza?