Borderou de evaluare (job #745990)

Utilizator avatar Maria-Luiza Petrescu Maria-Luiza Maria-Luiza IP ascuns
Problemă Case (clasa a 5-a) Compilator c-32
Rundă Tema 15 clasa a 5-a Status evaluat
Dată 19 nov. 2023 10:40:00 Scor 100

Raport evaluator

Compilare: main.c: In function 'main': 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:19:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 19 | fscanf( fin, "%d", &a ); | ^~~~~~~~~~~~~~~~~~~~~~~ main.c:35:5: warning: pointer 'fin' used after 'fclose' [-Wuse-after-free] 35 | fprintf( fin, "%d\n%d\n%d\n%d\n%d\n%d", g1, g2, g3, b, f, c ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:32:5: note: call to 'fclose' here 32 | fclose( fin ); | ^~~~~~~~~~~~~ In file included from /usr/include/stdio.h:906, from main.c:1: In function 'fprintf', inlined from 'main' at main.c:35: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:32:5: note: call to 'fclose' here 32 | 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 OK 10
7 1 ms 245 kb OK 10
8 2 ms 245 kb OK 10
9 2 ms 245 kb OK 10
10 1 ms 245 kb OK 10
Punctaj total 100