Borderou de evaluare (job #859450)

Utilizator avatar stefanb Balan Stefan stefanb IP ascuns
Problemă Adunare Compilator c
Rundă Arhiva de probleme Status evaluat
Dată 23 apr. 2026 19:24:34 Scor 0

Raport evaluator

Compilare: main.c: In function 'main': main.c:7:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 7 | fscanf(fin, "%d %d", &K, &N); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:23:5: warning: pointer 'fin' used after 'fclose' [-Wuse-after-free] 23 | fprintf(fin, "%d %d\n", coloana, rand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:8:5: note: call to 'fclose' here 8 | fclose(fin); | ^~~~~~~~~~~ main.c:16:5: warning: pointer 'fin' used after 'fclose' [-Wuse-after-free] 16 | fprintf(fin, "%d\n", valoare); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:8:5: note: call to 'fclose' here 8 | fclose(fin); | ^~~~~~~~~~~ In file included from /usr/include/stdio.h:970, from main.c:1: In function 'fprintf', inlined from 'main' at main.c:23:5: /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:8:5: note: call to 'fclose' here 8 | fclose(fin); | ^~~~~~~~~~~ In function 'fprintf', inlined from 'main' at main.c:16:5: /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:8:5: note: call to 'fclose' here 8 | fclose(fin); | ^~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 0 ms 296 kb Killed by signal 11. 0
2 1 ms 512 kb Killed by signal 11. 0
Punctaj total 0