Borderou de evaluare (job #3176185)

Utilizator MemeComan Mihai Matei Meme Data 26 noiembrie 2023 20:03:57
Problema Radix Sort Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int radixStep(int)': main.cpp:26:1: warning: no return statement in function returning non-void [-Wreturn-type] 26 | } | ^ main.cpp:11:10: warning: iteration 10 invokes undefined behavior [-Waggressive-loop-optimizations] 11 | f[i] = 0; | ~~~~~^~~ main.cpp:10:20: note: within this loop 10 | for(int i = 0; i <= 10; i++){ | ~~^~~~~ main.cpp:11:10: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [40, 43] is out of the bounds [0, 40] of object 'f' with type 'int [10]' [-Warray-bounds] 11 | f[i] = 0; | ~~~~~^~~ main.cpp:7:5: note: 'f' declared here 7 | int f[10]; | ^ main.cpp: In function 'void radixsort()': main.cpp:32:28: warning: 'valmax' may be used uninitialized [-Wmaybe-uninitialized] 32 | for(int power = 1; power <= valmax; power *= 10){ | ~~~~~~^~~~~~~~~ main.cpp:28:7: note: 'valmax' was declared here 28 | int valmax; | ^~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms303kbIncorect00
21ms819kbIncorect0
39ms4751kbIncorect0
49ms4751kbIncorect00
5108ms47083kbIncorect0
6108ms46481kbIncorect0
79ms4751kbIncorect0
8123ms50982kbIncorect00
9118ms50507kbIncorect0
10113ms50577kbIncorect0
Punctaj total0

Ceva nu functioneaza?