Borderou de evaluare (job #3176192)

Utilizator MemeComan Mihai Matei Meme Data 26 noiembrie 2023 20:13:53
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:30:1: warning: no return statement in function returning non-void [-Wreturn-type] 30 | } | ^ 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:36:28: warning: 'valmax' may be used uninitialized [-Wmaybe-uninitialized] 36 | for(int power = 1; power <= valmax; power *= 10){ | ~~~~~~^~~~~~~~~ main.cpp:32:7: note: 'valmax' was declared here 32 | int valmax; | ^~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms303kbIncorect00
21ms819kbIncorect0
39ms4493kbIncorect0
49ms4354kbIncorect00
5118ms46780kbIncorect0
6123ms46964kbIncorect0
79ms4489kbIncorect0
8133ms50720kbIncorect00
9123ms49831kbIncorect0
10133ms50868kbIncorect0
Punctaj total0

Ceva nu functioneaza?