Borderou de evaluare (job #2901035)

Utilizator petru.theodor07Petru Cristea petru.theodor07 Data 12 mai 2022 19:42:21
Problema Radix Sort Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 30

Raport evaluator

Compilare: main.cpp: In function 'void radixsort()': main.cpp:46:23: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 46 | for (int i = 0; i < sizeof(v[0]); i ++) | ~~^~~~~~~~~~~~~~ main.cpp: In function 'void countsort(int*, int*, int)': main.cpp:31:20: warning: iteration 255 invokes undefined behavior [-Waggressive-loop-optimizations] 31 | counter[i] = 0; | ~~~~~~~~~~~^~~ main.cpp:30:22: note: within this loop 30 | for(int i = 0; i < 1<<8; i++) | ~~^~~~~~ main.cpp:39:18: warning: iteration 254 invokes undefined behavior [-Waggressive-loop-optimizations] 39 | index[i] = index[i-1] + counter[i-1]; | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:38:22: note: within this loop 38 | for(int i = 1; i < 1<<8; i ++) | ~~^~~~~~ main.cpp:31:20: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [1020, 1023] is out of the bounds [0, 1020] of object 'counter' with type 'int [255]' [-Warray-bounds] 31 | counter[i] = 0; | ~~~~~~~~~~~^~~ main.cpp:27:9: note: 'counter' declared here 27 | int counter[255]; | ^~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
11ms184kbOK1030
218ms3035kbOK10
3190ms9265kbOK10
4195ms9269kbOK100
51981ms87515kbOK10
62002ms80379kbTime limit exceeded0
7219ms9793kbOK10
82003ms85159kbTime limit exceeded00
91740ms90537kbOK10
102002ms85155kbTime limit exceeded0
Punctaj total30

Ceva nu functioneaza?