Borderou de evaluare (job #850147)

Utilizator avatar Teocip Tudorică Ciprian Teodor Teocip IP ascuns
Problemă Colier (clasa a 9-a) Compilator cpp
Rundă Arhiva de probleme Status evaluat
Dată 31 ian. 2026 11:56:43 Scor 60

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:12:39: warning: overflow in conversion from 'long long int' to 'int' changes value from '-9223372036854775807' to '1' [-Woverflow] 12 | int n, l_i = 0, sc_i = 0, s_max = -INF, first, last, tot = 0; | ^~~~ main.cpp:12:12: warning: unused variable 'l_i' [-Wunused-variable] 12 | int n, l_i = 0, sc_i = 0, s_max = -INF, first, last, tot = 0; | ^~~ main.cpp:31:14: warning: 'first' may be used uninitialized [-Wmaybe-uninitialized] 31 | if(first + last > s_max){ | ~~~~~~^~~~~~ main.cpp:12:45: note: 'first' was declared here 12 | int n, l_i = 0, sc_i = 0, s_max = -INF, first, last, tot = 0; | ^~~~~ main.cpp:31:14: warning: 'last' may be used uninitialized [-Wmaybe-uninitialized] 31 | if(first + last > s_max){ | ~~~~~~^~~~~~ main.cpp:12:52: note: 'last' was declared here 12 | int n, l_i = 0, sc_i = 0, s_max = -INF, first, last, tot = 0; | ^~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 508 kb Incorect 0
2 1 ms 292 kb Incorect 0
3 1 ms 292 kb OK 10
4 1 ms 508 kb OK 10
5 1 ms 292 kb Incorect 0
6 1 ms 292 kb OK 10
7 10 ms 292 kb OK 10
8 83 ms 292 kb OK 10
9 95 ms 292 kb Incorect 0
10 63 ms 292 kb OK 10
Punctaj total 60