Borderou de evaluare (job #1230751)

Utilizator VisanCosminVisan Tudor Cosmin VisanCosmin Data 19 septembrie 2014 11:04:02
Problema Alee Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:22:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] fscanf(f,"%d%d",&n,&m); ^ user.cpp:22:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=] user.cpp:30:62: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] fscanf(f,"%d%d%d%d",&start.x,&start.y,&finish.x,&finish.y); ^ user.cpp:30:62: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=] user.cpp:30:62: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘short int*’ [-Wformat=] user.cpp:30:62: warning: format ‘%d’ expects argument of type ‘int*’, but argument 6 has type ‘short int*’ [-Wformat=] user.cpp:22:27: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d%d",&n,&m); ^ user.cpp:27:31: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d%d",&x,&y); ^ user.cpp:30:63: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d%d%d%d",&start.x,&start.y,&finish.x,&finish.y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms452kbIncorect0
20ms452kbIncorect0
30ms496kbIncorect0
40ms460kbIncorect0
50ms572kbIncorect0
60ms528kbIncorect0
74ms580kbIncorect0
80ms640kbIncorect0
90ms628kbIncorect0
100ms480kbIncorect0
Punctaj total0

Ceva nu functioneaza?