Borderou de evaluare (job #786716)

Utilizator avatar Maria-Luiza Petrescu Maria-Luiza Maria-Luiza IP ascuns
Problemă Analiza (clasa a 5-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 17 sept. 2024 16:02:29 Scor 75

Raport evaluator

Compilare: main.c: In function 'main': main.c:8:40: warning: unused variable 'k' [-Wunused-variable] 8 | int c, n, i, N, Nc, R, l, lmax, j, k, max, ok; | ^ main.c:11:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 11 | fscanf( fin, "%d%d", &c, &n); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:17:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 17 | fscanf( fin, "%d", &N ); | ^~~~~~~~~~~~~~~~~~~~~~~ main.c:36:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 36 | fscanf( fin, "%d", &v[i]) ; | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:980, from main.c:1: In function 'fprintf', inlined from 'main' at main.c:67:9: /usr/include/bits/stdio2.h:79:10: warning: 'max' may be used uninitialized [-Wmaybe-uninitialized] 79 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 80 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ main.c: In function 'main': main.c:8:43: note: 'max' was declared here 8 | int c, n, i, N, Nc, R, l, lmax, j, k, max, ok; | ^~~ In function 'fprintf', inlined from 'main' at main.c:65:9: /usr/include/bits/stdio2.h:79:10: warning: 'lmax' may be used uninitialized [-Wmaybe-uninitialized] 79 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 80 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ main.c: In function 'main': main.c:8:31: note: 'lmax' was declared here 8 | int c, n, i, N, Nc, R, l, lmax, j, k, max, ok; | ^~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb OK 5
2 1 ms 245 kb OK 5
3 1 ms 245 kb OK 5
4 1 ms 507 kb OK 5
5 1 ms 507 kb OK 5
6 1 ms 266 kb OK 5
7 1 ms 249 kb OK 5
8 1 ms 270 kb OK 5
9 19 ms 270 kb OK 5
10 49 ms 270 kb OK 5
11 1 ms 245 kb OK 5
12 1 ms 245 kb OK 5
13 209 ms 249 kb Time limit exceeded 0
14 1 ms 245 kb OK 5
15 1 ms 245 kb OK 5
16 169 ms 249 kb OK 5
17 209 ms 249 kb Time limit exceeded 0
18 209 ms 512 kb Time limit exceeded 0
19 209 ms 512 kb Time limit exceeded 0
20 209 ms 532 kb Time limit exceeded 0
Punctaj total 75