Borderou de evaluare (job #791675)

Utilizator avatar Sebastian_Codrici Sebastian Codrici Tudor Sebastian_Codrici IP ascuns
Problemă Centru Prim (clasa a 5-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 28 oct. 2024 20:05:33 Scor 0

Raport evaluator

Compilare: main.c: In function 'main': main.c:9:21: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'long long int *' [-Wformat=] 9 | fscanf ( fin, "%d", &n ); | ~^ ~~ | | | | | long long int * | int * | %lld main.c:9:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 9 | fscanf ( fin, "%d", &n ); | ^~~~~~~~~~~~~~~~~~~~~~~~ main.c:28:9: warning: pointer 'fin' may be used after 'fclose' [-Wuse-after-free] 28 | fprintf(fin,"%d",0 ); | ^~~~~~~~~~~~~~~~~~~~ main.c:10:5: note: call to 'fclose' here 10 | fclose( fin ); | ^~~~~~~~~~~~~ In file included from /usr/include/stdio.h:980, from main.c:1: In function 'fprintf', inlined from 'main' at main.c:28:9: /usr/include/bits/stdio2.h:79:10: warning: pointer 'fin' may be 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:10:5: note: call to 'fclose' here 10 | fclose( fin ); | ^~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test Punctaj/grupă
1 1 ms 245 kb Incorect 0 0
2 1 ms 245 kb Incorect 0
3 1 ms 245 kb OK 5
4 1 ms 245 kb OK 5
5 3 ms 151 kb OK 5 0
6 1 ms 245 kb Incorect 0
7 1 ms 245 kb Incorect 0
8 1 ms 245 kb OK 5
9 1 ms 245 kb Incorect 0 0
10 1 ms 507 kb OK 5
11 1 ms 245 kb OK 5
12 1 ms 507 kb Incorect 0
13 1 ms 245 kb Incorect 0 0
14 1 ms 245 kb OK 5
15 1 ms 245 kb Incorect 0
16 1 ms 245 kb OK 5
17 1 ms 245 kb OK 5 0
18 1 ms 245 kb OK 5
19 1 ms 245 kb Incorect 0
20 1 ms 245 kb Incorect 0
Punctaj total 0