Borderou de evaluare (job #613094)

Utilizator avatar andreifilimon Popescu Filimon Andrei Cosmin andreifilimon IP ascuns
Problemă Macheta (clasa a 8-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 28 oct. 2021 22:14:58 Scor 40

Raport evaluator

Compilare: main.c: In function 'main': main.c:17:22: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'short int *' [-Wformat=] 17 | fscanf(fin,"%d%d%d%d%d",&x[i],&l[i],&lx[i],&ly,&ho[i]); | ~^ ~~~~~ | | | | int * short int * | %hd main.c:17:24: warning: format '%d' expects argument of type 'int *', but argument 4 has type 'short int *' [-Wformat=] 17 | fscanf(fin,"%d%d%d%d%d",&x[i],&l[i],&lx[i],&ly,&ho[i]); | ~^ ~~~~~ | | | | int * short int * | %hd main.c:17:26: warning: format '%d' expects argument of type 'int *', but argument 5 has type 'short int *' [-Wformat=] 17 | fscanf(fin,"%d%d%d%d%d",&x[i],&l[i],&lx[i],&ly,&ho[i]); | ~^ ~~~~~~ | | | | int * short int * | %hd main.c:17:30: warning: format '%d' expects argument of type 'int *', but argument 7 has type 'short int *' [-Wformat=] 17 | fscanf(fin,"%d%d%d%d%d",&x[i],&l[i],&lx[i],&ly,&ho[i]); | ~^ ~~~~~~ | | | | int * short int * | %hd main.c:14:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 14 | fscanf(fin,"%d",&n); | ^~~~~~~~~~~~~~~~~~~ main.c:17:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 17 | fscanf(fin,"%d%d%d%d%d",&x[i],&l[i],&lx[i],&ly,&ho[i]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 131 kb OK 10
2 1 ms 131 kb OK 10
3 1 ms 131 kb OK 10
4 1 ms 131 kb Killed by Signal 11 0
5 2 ms 131 kb Killed by Signal 11 0
6 1 ms 131 kb Incorect 0
7 1 ms 131 kb Incorect 0
8 1 ms 131 kb Incorect 0
9 1 ms 131 kb Killed by Signal 11 0
10 1 ms 131 kb OK 10
Punctaj total 40