Borderou de evaluare (job #768798)

Utilizator avatar matei_matei Diaconu Matei matei_matei IP ascuns
Problemă Subsecvenţa de sumă maximă Compilator c-32
Rundă Tema 25 clasa a 7-a Status evaluat
Dată 18 mar. 2024 18:13:02 Scor 90

Raport evaluator

Compilare: main.c: In function 'main': 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:12:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 12 | fscanf(fin, "%d", &s); | ^~~~~~~~~~~~~~~~~~~~~ main.c:27:15: warning: 'bmax' may be used uninitialized [-Wmaybe-uninitialized] 27 | if(b<bmax){ | ^ main.c:6:35: note: 'bmax' was declared here 6 | int n, i, s, sum, maxx, b, e, bmax, emax; | ^~~~ main.c:32:19: warning: 'emax' may be used uninitialized [-Wmaybe-uninitialized] 32 | if(e<emax){ | ^ main.c:6:41: note: 'emax' was declared here 6 | int n, i, s, sum, maxx, b, e, bmax, emax; | ^~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb OK 5
2 1 ms 245 kb Incorect 0
3 1 ms 245 kb Incorect 0
4 1 ms 245 kb OK 5
5 1 ms 249 kb OK 5
6 1 ms 270 kb OK 5
7 9 ms 245 kb OK 5
8 9 ms 249 kb OK 5
9 39 ms 245 kb OK 5
10 79 ms 270 kb OK 5
11 169 ms 249 kb OK 5
12 239 ms 249 kb OK 5
13 339 ms 245 kb OK 5
14 409 ms 245 kb OK 5
15 1978 ms 245 kb OK 5
16 2174 ms 249 kb OK 5
17 2154 ms 249 kb OK 5
18 2348 ms 245 kb OK 5
19 2438 ms 270 kb OK 5
20 2377 ms 512 kb OK 5
Punctaj total 90