Borderou de evaluare (job #774244)

Utilizator avatar RobertSerb hacker ^_^ RobertSerb IP ascuns
Problemă Moștenire (clasa a 5-a) Compilator c-32
Rundă Tema 38 Clasa a 5-a Status evaluat
Dată 14 apr. 2024 15:33:46 Scor 100

Raport evaluator

Compilare: main.c: In function 'main': main.c:14:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 14 | fscanf(fin, "%d%d%d%d", &c, &q, &n, &k); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:19:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 19 | fscanf(fin, "%d", &x[i]); | ^~~~~~~~~~~~~~~~~~~~~~~~ main.c:22:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 22 | fscanf(fin, "%d%d", &s[j], &d[j]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:42:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 42 | fscanf(fin, "%d", &x[i]); | ^~~~~~~~~~~~~~~~~~~~~~~~ main.c:53:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 53 | fscanf(fin, "%d%d", &t, &f); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:71:9: warning: 't' may be used uninitialized [-Wmaybe-uninitialized] 71 | fprintf(fout, "%d\n", t + 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:58:23: note: 't' was declared here 58 | int max = -1, t; | ^
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb OK 5
2 1 ms 245 kb OK 5
3 1 ms 245 kb OK 5
4 9 ms 229 kb OK 5
5 1 ms 249 kb OK 5
6 1 ms 249 kb OK 5
7 1 ms 266 kb OK 5
8 1 ms 245 kb OK 5
9 1 ms 245 kb OK 5
10 1 ms 245 kb OK 5
11 1 ms 245 kb OK 5
12 1 ms 245 kb OK 5
13 1 ms 245 kb OK 5
14 1 ms 270 kb OK 5
15 1 ms 249 kb OK 5
16 1 ms 274 kb OK 5
17 1 ms 266 kb OK 5
18 1 ms 245 kb OK 5
19 1 ms 245 kb OK 5
20 1 ms 245 kb OK 5
Punctaj total 100