Borderou de evaluare (job #796727)

Utilizator avatar Sebi_Ionescu Ionescu Sebastian Andrei Sebi_Ionescu IP ascuns
Problemă Creioane (clasa a 6-a) Compilator c-32
Rundă Tema 17 Clasa a 6-a Status evaluat
Dată 22 nov. 2024 18:55:06 Scor 10

Raport evaluator

Compilare: main.c: In function 'main': main.c:16:38: warning: the comparison will always evaluate as 'false' for the address of 'creioane' will never be NULL [-Waddress] 16 | if(creioane[creioane[i][0]-1]==0&&creioane[creioane[i][1]-1]==0) | ^~ main.c:3:5: note: 'creioane' declared here 3 | int creioane[9000][2]; | ^~~~~~~~ main.c:16:69: warning: the comparison will always evaluate as 'false' for the address of 'creioane' will never be NULL [-Waddress] 16 | if(creioane[creioane[i][0]-1]==0&&creioane[creioane[i][1]-1]==0) | ^~ main.c:3:5: note: 'creioane' declared here 3 | int creioane[9000][2]; | ^~~~~~~~ main.c:10:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 10 | fscanf(fin,"%d",&n); | ^~~~~~~~~~~~~~~~~~~ main.c:13:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 13 | fscanf(fin,"%d%d",&creioane[i][0],&creioane[i][1]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb Incorect 0
2 1 ms 245 kb Incorect 0
3 1 ms 245 kb OK 10
4 1 ms 245 kb Incorect 0
5 1 ms 245 kb Incorect 0
6 9 ms 507 kb Incorect 0
7 9 ms 266 kb Incorect 0
8 9 ms 245 kb Incorect 0
9 9 ms 245 kb Incorect 0
10 9 ms 507 kb Incorect 0
Punctaj total 10