Borderou de evaluare (job #2874204)

Utilizator hhhhhhhAndrei Boaca hhhhhhh Data 19 martie 2022 13:16:11
Problema Dice Array Status done
Runda Algoritmiada 2022 - Runda 3 Compilator cpp-64 | Vezi sursa
Scor 50

Raport evaluator

Compilare: main.cpp: In function 'std::vector<int> query(int, int, int, int)': main.cpp:65:14: warning: variable 'ok' set but not used [-Wunused-but-set-variable] 65 | bool ok=0; | ^~ main.cpp: In function 'int main()': main.cpp:97:19: warning: iteration 5 invokes undefined behavior [-Waggressive-loop-optimizations] 97 | val[i]=0; | ~~~~~~^~ main.cpp:96:22: note: within this loop 96 | for(int i=0;i<=5;i++) | ~^~~ main.cpp:97:18: warning: array subscript 5 is above array bounds of 'int [5]' [-Warray-bounds] 97 | val[i]=0; | ~~~~~^ main.cpp:95:13: note: while referencing 'val' 95 | int val[5]; | ^~~
Feedback Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
135ms4558kbOK!1020
244ms4526kbOK!10
335ms4526kbOK!1530
445ms4497kbOK!15
5802ms13230kbTime limit exceeded00
6802ms17526kbTime limit exceeded0
7801ms13230kbTime limit exceeded00
8802ms17526kbTime limit exceeded0
Punctaj total50

Ceva nu functioneaza?