Borderou de evaluare (job #740391)

Utilizator avatar Andy_Visan Andrei Visan Andy_Visan IP ascuns
Problemă Suma cifrelor unui număr (clasa a 7-a) Compilator c-32
Rundă Tema 6 clasa a 7-a Status evaluat
Dată 25 oct. 2023 20:31:52 Scor 50

Raport evaluator

Compilare: main.c: In function 'main': main.c:15:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 15 | fscanf(fin, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~~ main.c:18:5: warning: pointer 'fin' used after 'fclose' [-Wuse-after-free] 18 | fprintf(fin, "%d\n", sumacfnr(n)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:16:5: note: call to 'fclose' here 16 | fclose(fin); | ^~~~~~~~~~~ In file included from /usr/include/stdio.h:906, from main.c:1: In function 'fprintf', inlined from 'main' at main.c:18:5: /usr/include/bits/stdio2.h:79:10: warning: pointer 'fin' used after 'fclose' [-Wuse-after-free] 79 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 80 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ main.c: In function 'main': main.c:16:5: note: call to 'fclose' here 16 | fclose(fin); | ^~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb OK 10
2 1 ms 245 kb OK 10
3 1 ms 245 kb OK 10
4 1 ms 245 kb OK 10
5 1 ms 245 kb OK 10
6 1 ms 245 kb Incorect 0
7 2 ms 245 kb Incorect 0
8 2 ms 245 kb Incorect 0
9 1 ms 245 kb Incorect 0
10 1 ms 245 kb Incorect 0
Punctaj total 50