Borderou de evaluare (job #2807700)

Utilizator puica2018Puica Andrei puica2018 Data 24 noiembrie 2021 09:32:15
Problema Radix Sort Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 30

Raport evaluator

Compilare: main.cpp: In function 'void solve()': main.cpp:22:19: warning: iteration 255 invokes undefined behavior [-Waggressive-loop-optimizations] 22 | cnt[i]+=cnt[i-1]; | ~~~~~~^~~~~~~~~~ main.cpp:21:19: note: within this loop 21 | for(i=1; i<=256; i++) | ~^~~~~ main.cpp:24:19: warning: 'void* __builtin_memmove(void*, const void*, long unsigned int)' forming offset [1024, 1027] is out of the bounds [0, 1024] of object 'cnt' with type 'int [256]' [-Warray-bounds] 24 | cnt[i]=cnt[i-1]; | ~~~~~~^~~~~~~~~ main.cpp:10:5: note: 'cnt' declared here 10 | int cnt[256]; | ^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
12ms184kbOK1030
220ms4739kbOK10
3198ms8617kbOK10
4202ms8671kbOK100
5112ms5959kbKilled by Signal 110
6112ms5963kbKilled by Signal 110
7231ms9330kbOK10
8112ms5963kbKilled by Signal 1100
9112ms5844kbKilled by Signal 110
10112ms5959kbKilled by Signal 110
Punctaj total30

Ceva nu functioneaza?