Borderou de evaluare (job #1207423)

Utilizator marcelPFake name marcelP Data 12 iulie 2014 23:45:55
Problema Zmeu2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:26:41: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] fscanf(fin, "%d %d %d\n", &n, &p, &k); ^ user.cpp:26:41: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=] user.cpp:26:41: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘short int*’ [-Wformat=] user.cpp:30:44: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] fscanf(fin, "%d %d\n", &d[i], &c[i]); ^ user.cpp:30:44: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=] user.cpp:46:38: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] fscanf(fin, "%d %d\n", &x, &y); ^ user.cpp:46:38: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=] user.cpp:26:42: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d %d %d\n", &n, &p, &k); ^ user.cpp:30:45: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d %d\n", &d[i], &c[i]); ^ user.cpp:46:39: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d %d\n", &x, &y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms460kbIncorect0
20ms464kbOK10
38ms460kbIncorect0
40ms460kbIncorect0
58ms456kbOK10
60ms460kbIncorect0
70ms460kbIncorect0
80ms464kbIncorect0
90ms460kbIncorect0
1012ms456kbIncorect0
Punctaj total20

Ceva nu functioneaza?