Borderou de evaluare (job #2017706)

Utilizator GabiTulbaGabi Tulba-Lecu GabiTulba Data 2 septembrie 2017 02:47:43
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:47:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] fscanf(IN,"%d%d%d",&N,&P,&K); ^ user.cpp:47:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=] user.cpp:47:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘short int*’ [-Wformat=] user.cpp:50:44: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] fscanf(IN,"%d%d",&delay[i],&cost[i]),blocked[i][i]=1; ^ user.cpp:50:44: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=] user.cpp:52:31: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] fscanf(IN,"%d%d",&x,&y),blocked[x][y]=1; ^ user.cpp:52:31: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=] user.cpp:47:33: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(IN,"%d%d%d",&N,&P,&K); ^ user.cpp:50:61: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(IN,"%d%d",&delay[i],&cost[i]),blocked[i][i]=1; ^ user.cpp:52:48: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(IN,"%d%d",&x,&y),blocked[x][y]=1; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms436kbIncorect0
20ms436kbOK10
30ms472kbIncorect0
40ms472kbIncorect0
50ms464kbOK10
60ms440kbIncorect0
70ms444kbIncorect0
80ms436kbIncorect0
90ms460kbIncorect0
100ms468kbIncorect0
Punctaj total20

Ceva nu functioneaza?