Borderou de evaluare (job #1378384)

Utilizator serbanSlincu Serban serban Data 6 martie 2015 11:56:35
Problema Alee Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘void lee()’: user.cpp:25:11: warning: unused variable ‘j’ [-Wunused-variable] int i,j; ^ user.cpp: In function ‘int main()’: user.cpp:52:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] fscanf(f,"%d %d",&n,&m); ^ user.cpp:52:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=] user.cpp:54:33: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] fscanf(f,"%d %d",&ax,&ay),a[ax][ay]=-1; ^ user.cpp:54:33: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=] user.cpp:56:37: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] fscanf(f,"%d %d",&c[1].x,&c[1].y); ^ user.cpp:56:37: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=] user.cpp:58:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] fscanf(f,"%d %d",&sx,&sy); ^ user.cpp:58:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=] user.cpp:49:11: warning: unused variable ‘j’ [-Wunused-variable] int i,j; ^ user.cpp:52:28: 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:54:47: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d %d",&ax,&ay),a[ax][ay]=-1; ^ user.cpp:56:38: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d %d",&c[1].x,&c[1].y); ^ user.cpp:58:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d %d",&sx,&sy); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms440kbIncorect0
20ms436kbIncorect0
30ms436kbIncorect0
40ms440kbIncorect0
50ms436kbIncorect0
60ms440kbIncorect0
74ms436kbIncorect0
80ms444kbIncorect0
90ms440kbIncorect0
100ms440kbIncorect0
Punctaj total0

Ceva nu functioneaza?