Borderou de evaluare (job #1418881)

Utilizator figure0907Andrei Gonczi figure0907 Data 14 aprilie 2015 12:15:47
Problema Datorii Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘void readdata()’: user.cpp:29:50: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘bool*’ [-Wformat=] fscanf(f,"%d%d%d",&q[i].t,&q[i].x,&q[i].y); ^ user.cpp: In function ‘int get_val(int, int)’: user.cpp:47:15: warning: unused variable ‘poz’ [-Wunused-variable] int q=p,t,poz,st=0,dr=0; ^ user.cpp: In function ‘void readdata()’: 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:25:29: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&a[i]); ^ user.cpp:29:51: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d%d%d",&q[i].t,&q[i].x,&q[i].y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
132ms620kbRaspuns incorect0
224ms624kbRaspuns incorect0
328ms624kbRaspuns incorect0
424ms624kbRaspuns incorect0
528ms624kbRaspuns incorect0
Punctaj total0

Ceva nu functioneaza?