Borderou de evaluare (job #811033)

Utilizator avatar MihneaIonitaTeodor Ionita Mihnea Teodor MihneaIonitaTeodor IP ascuns
Problemă Minute (clasa a 5-a) Compilator c-32
Rundă Tema 26 Clasa a 5-a Status evaluat
Dată 22 feb. 2025 18:01:12 Scor 95

Raport evaluator

Compilare: main.c: In function 'main': main.c:9:2: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 9 | fscanf(fin,"%d%d%d%d",&h1,&m1,&h2,&m2); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:33:2: warning: pointer 'fin' used after 'fclose' [-Wuse-after-free] 33 | fprintf(fin,"%d %d",h3,m3); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:31:2: note: call to 'fclose' here 31 | fclose( fin ); | ^~~~~~~~~~~~~ In file included from /usr/include/stdio.h:970, from main.c:1: In function 'fprintf', inlined from 'main' at main.c:33:2: /usr/include/bits/stdio2.h:111:10: warning: pointer 'fin' used after 'fclose' [-Wuse-after-free] 111 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 112 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ main.c: In function 'main': main.c:31:2: note: call to 'fclose' here 31 | 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 241 kb OK 10
6 1 ms 245 kb OK 10
7 1 ms 245 kb OK 10
8 1 ms 245 kb OK 10
9 1 ms 245 kb OK 10
10 1 ms 245 kb OK 10
Penalizare: 5% (pentru 1 submisie/ii) 5%
Punctaj total 95