Borderou de evaluare (job #812463)

Utilizator avatar Tudor_Petcu Tudor Mihai Petcu Tudor_Petcu IP ascuns
Problemă Speciale (clasa a 5-a) Compilator c-32
Rundă Concurs 05 | IQ Academy | clasa a 5-a Status evaluat
Dată 4 mar. 2025 10:21:45 Scor 0

Raport evaluator

Compilare: main.c: In function 'main': main.c:30:15: warning: statement with no effect [-Wunused-value] 30 | cif == 9; | ~~~~^~~~ main.c:53:17: warning: statement with no effect [-Wunused-value] 53 | cif == 1; | ~~~~^~~~ main.c:85:17: warning: statement with no effect [-Wunused-value] 85 | cif == 9; | ~~~~^~~~ main.c:93:19: warning: statement with no effect [-Wunused-value] 93 | cif == 1; | ~~~~^~~~ main.c:7:64: warning: variable 'cif2' set but not used [-Wunused-but-set-variable] 7 | int p2, k, n, a, b, cif, p, cnt, r, i, cn, ca, s, cp, c2p, cif2; | ^~~~ main.c:10:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 10 | fscanf( fin, "%d\n", &p2 ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:11:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 11 | fscanf( fin, "%d %d %d %d", &k, &n, &a, &b ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:106:5: warning: pointer 'fin' used after 'fclose' [-Wuse-after-free] 106 | fclose( fin ); | ^~~~~~~~~~~~~ main.c:12:5: note: call to 'fclose' here 12 | fclose( fin ); | ^~~~~~~~~~~~~ main.c:94:35: warning: 'cif' may be used uninitialized [-Wmaybe-uninitialized] 94 | while( cif == a / p && a > 0 ) { | ~~~~~~~~~~~~~^~~~~~~~ main.c:7:25: note: 'cif' was declared here 7 | int p2, k, n, a, b, cif, p, cnt, r, i, cn, ca, s, cp, c2p, cif2; | ^~~ main.c:60:25: warning: 'c2p' may be used uninitialized [-Wmaybe-uninitialized] 60 | while( cn / cp == 0 ) | ~~~^~~~ main.c:7:59: note: 'c2p' was declared here 7 | int p2, k, n, a, b, cif, p, cnt, r, i, cn, ca, s, cp, c2p, cif2; | ^~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 249 kb Incorect 0
2 1 ms 512 kb Incorect 0
3 1 ms 249 kb Incorect 0
4 1 ms 249 kb Incorect 0
5 1 ms 249 kb Incorect 0
6 1 ms 245 kb Incorect 0
7 509 ms 249 kb Time limit exceeded 0
8 1 ms 270 kb Incorect 0
9 509 ms 512 kb Time limit exceeded 0
10 509 ms 249 kb Time limit exceeded 0
11 1 ms 249 kb Incorect 0
12 509 ms 507 kb Time limit exceeded 0
13 1 ms 512 kb Incorect 0
14 1 ms 245 kb Incorect 0
15 509 ms 249 kb Time limit exceeded 0
16 509 ms 249 kb Time limit exceeded 0
17 509 ms 270 kb Time limit exceeded 0
18 1 ms 245 kb Incorect 0
19 1 ms 507 kb Incorect 0
20 509 ms 249 kb Time limit exceeded 0
Punctaj total 0