Borderou de evaluare (job #809878)

Utilizator avatar x_____Robert___x Nani Robert x_____Robert___x IP ascuns
Problemă Banda (baraj gimnaziu) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 20 feb. 2025 12:35:17 Scor 0

Raport evaluator

Compilare: main.cpp: In function 'void calculeaza_banda(int&, int&, int&, int&)': main.cpp:29:56: warning: 'sum_indices' may be used uninitialized [-Wmaybe-uninitialized] 29 | if (count > 0 && (1 > best_rank || (1 == best_rank && sum_indices > best_sum_indices))) { | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:12:22: note: 'sum_indices' was declared here 12 | int count, size, sum_indices; | ^~~~~~~~~~~ main.cpp:29:5: warning: 'count' may be used uninitialized [-Wmaybe-uninitialized] 29 | if (count > 0 && (1 > best_rank || (1 == best_rank && sum_indices > best_sum_indices))) { | ^~ main.cpp:12:9: note: 'count' was declared here 12 | int count, size, sum_indices; | ^~~~~ main.cpp:25:18: warning: 'size' may be used uninitialized [-Wmaybe-uninitialized] 25 | size += n; | ~~~~~^~~~ main.cpp:12:16: note: 'size' was declared here 12 | int count, size, sum_indices; | ^~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 507 kb Incorect 0
2 1 ms 270 kb Incorect 0
3 9 ms 770 kb Memory limit exceeded 0
4 19 ms 774 kb Memory limit exceeded 0
5 29 ms 774 kb Memory limit exceeded 0
6 29 ms 774 kb Memory limit exceeded 0
7 29 ms 770 kb Memory limit exceeded 0
8 19 ms 774 kb Memory limit exceeded 0
9 29 ms 774 kb Memory limit exceeded 0
10 1 ms 245 kb Incorect 0
Punctaj total 0