Borderou de evaluare (job #702056)

Utilizator avatar Coman_Diana Coman Diana Coman_Diana IP ascuns
Problemă Fermier1 (clasa a 6-a) Compilator c-32
Rundă Tema 20 clasa a 6-a Status evaluat
Dată 6 mar. 2023 19:53:17 Scor 13

Raport evaluator

Compilare: main.c: In function 'main': main.c:13:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 13 | fscanf( fin, "%d%d", &numar_plantatii, &capacitatea ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:15:7: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 15 | fscanf( fin, "%d", &distanta[index] ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:19:7: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 19 | fscanf( fin, "%d", &cantitatea[index] ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:16:13: warning: 'total' may be used uninitialized [-Wmaybe-uninitialized] 16 | total = total + distanta[index]; | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ main.c:11:39: note: 'total' was declared here 11 | int numar_plantatii, capacitatea, total, greutatea_masinii, plantatia, dist1, dist2, dist, rezultat, index; | ^~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 4 ms 245 kb Pomana - puncte din oficiu 10
2 5 ms 241 kb OK 3
3 5 ms 245 kb Incorect 0
4 4 ms 245 kb Incorect 0
5 4 ms 245 kb Incorect 0
6 4 ms 245 kb Incorect 0
7 4 ms 245 kb Incorect 0
8 4 ms 245 kb Incorect 0
9 4 ms 245 kb Incorect 0
10 4 ms 245 kb Incorect 0
11 5 ms 241 kb Incorect 0
12 4 ms 245 kb Incorect 0
13 5 ms 245 kb Incorect 0
14 4 ms 245 kb Incorect 0
15 5 ms 241 kb Incorect 0
16 4 ms 245 kb Incorect 0
17 3 ms 245 kb Incorect 0
18 4 ms 245 kb Incorect 0
19 4 ms 245 kb Incorect 0
20 4 ms 245 kb Incorect 0
21 4 ms 245 kb Incorect 0
Punctaj total 13