Borderou de evaluare (job #764407)

Utilizator avatar RaMiDra Dragulescu Rares Mihai RaMiDra IP ascuns
Problemă Piramide (clasa a 5-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 22 feb. 2024 18:25:48 Scor 88

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", &n); | ^~~~~~~~~~~~~~~~~~~~~~ main.c:15:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 15 | fscanf (fin, "%d", &x); | ^~~~~~~~~~~~~~~~~~~~~~ main.c:16:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 16 | fscanf (fin, "%d", &k); | ^~~~~~~~~~~~~~~~~~~~~~ main.c:71:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 71 | fscanf(fin, "%d", &a); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:964, from main.c:2: In function 'fprintf', inlined from 'main' at main.c:121:12: /usr/include/bits/stdio2.h:79:10: warning: 'poz' may be used uninitialized [-Wmaybe-uninitialized] 79 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 80 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ main.c: In function 'main': main.c:11:57: note: 'poz' was declared here 11 | int n, x, k, a, sum, cnt, i, pir, b, sum2, csum, cn, poz, max; | ^~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 3 ms 245 kb OK 10
2 3 ms 245 kb a) OK; b) OK; c) OK d) linie incorecta 6
3 3 ms 245 kb a) OK; b) OK; c) OK d) linie incorecta 6
4 3 ms 245 kb OK 10
5 3 ms 245 kb OK 10
6 3 ms 249 kb OK 10
7 3 ms 245 kb OK 10
8 3 ms 245 kb OK 10
9 105 ms 245 kb OK 10
10 3 ms 245 kb a) OK; b) OK; c) OK d) linie incorecta 6
Punctaj total 88