Borderou de evaluare (job #613095)

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:15:23 Scor 20

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 'char *' [-Wformat=] 17 | fscanf(fin,"%d%d%d%d%d",&x[i],&l[i],&lx[i],&ly,&ho[i]); | ~^ ~~~~~ | | | | int * char * | %hhd main.c:17:24: warning: format '%d' expects argument of type 'int *', but argument 4 has type 'char *' [-Wformat=] 17 | fscanf(fin,"%d%d%d%d%d",&x[i],&l[i],&lx[i],&ly,&ho[i]); | ~^ ~~~~~ | | | | int * char * | %hhd main.c:17:26: warning: format '%d' expects argument of type 'int *', but argument 5 has type 'char *' [-Wformat=] 17 | fscanf(fin,"%d%d%d%d%d",&x[i],&l[i],&lx[i],&ly,&ho[i]); | ~^ ~~~~~~ | | | | int * char * | %hhd main.c:17:30: warning: format '%d' expects argument of type 'int *', but argument 7 has type 'char *' [-Wformat=] 17 | fscanf(fin,"%d%d%d%d%d",&x[i],&l[i],&lx[i],&ly,&ho[i]); | ~^ ~~~~~~ | | | | int * char * | %hhd 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 Incorect 0
2 1 ms 131 kb OK 10
3 1 ms 131 kb Incorect 0
4 1 ms 131 kb Incorect 0
5 1 ms 131 kb Incorect 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 Incorect 0
10 1 ms 131 kb OK 10
Punctaj total 20