Borderou de evaluare (job #1378353)

Utilizator serbanSlincu Serban serban Data 6 martie 2015 11:46:14
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:50: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:50:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=] user.cpp:52: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:52:33: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=] user.cpp:54: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:54:37: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=] user.cpp:56: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:56:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=] user.cpp:47:11: warning: unused variable ‘j’ [-Wunused-variable] int i,j; ^ user.cpp:50: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:52: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:54: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:56: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
10ms588kbKilled by signal 11(SIGSEGV).0
20ms612kbIncorect0
30ms620kbIncorect0
40ms612kbIncorect0
50ms620kbIncorect0
60ms616kbIncorect0
78ms612kbIncorect0
80ms616kbIncorect0
90ms620kbIncorect0
100ms620kbIncorect0
Punctaj total0

Ceva nu functioneaza?