Borderou de evaluare (job #1421515)

Utilizator cnitv1CNITV Paul Radu Mihai cnitv1 Data 19 aprilie 2015 12:00:39
Problema Parcele2 Status done
Runda ONIS 2015, Runda 3 Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void main2()’: user.cpp:99:57: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] fscanf(in,"%d %d %d", &c[i].an, &c[i].x, &c[i].y); ^ user.cpp:99:57: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=] user.cpp:99:57: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘short int*’ [-Wformat=] user.cpp:106:65: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] fscanf(in,"%d%d%d%d",&r[i].x1,&r[i].y1,&r[i].x2,&r[i].y2); ^ user.cpp:106:65: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=] user.cpp:106:65: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘short int*’ [-Wformat=] user.cpp:106:65: warning: format ‘%d’ expects argument of type ‘int*’, but argument 6 has type ‘short int*’ [-Wformat=] user.cpp:93: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,&m,&k); ^ user.cpp:95:23: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in,"%d",&p); ^ user.cpp:99:58: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in,"%d %d %d", &c[i].an, &c[i].x, &c[i].y); ^ user.cpp:102:23: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in,"%d",&q); ^ user.cpp:106:66: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in,"%d%d%d%d",&r[i].x1,&r[i].y1,&r[i].x2,&r[i].y2); ^ user.cpp: In function ‘int main()’: user.cpp:160:23: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in,"%d",&t); ^ user.cpp: In function ‘void main3()’: user.cpp:80:25: warning: array subscript is above array bounds [-Warray-bounds] if(rez[i][an]==1) ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1420ms4260kbAccepted!100
Punctaj total100

Ceva nu functioneaza?