Borderou de evaluare (job #2660994)

Utilizator stefan.popescuPopescu Stefan stefan.popescu Data 21 octombrie 2020 00:22:17
Problema Radix Sort Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 30

Raport evaluator

Compilare: main.cpp: In function 'void sortingUtils::radixSort(RandomIt, RandomIt)': main.cpp:36:13: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(int i=255; i; i--) nr[i]=nr[i-1]; nr[0]=0; ^~~ main.cpp:36:51: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' for(int i=255; i; i--) nr[i]=nr[i-1]; nr[0]=0; ^~ main.cpp:45:13: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(int i=255; i; i--) nr[i]=nr[i-1]; nr[0]=0; ^~~ main.cpp:45:51: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' for(int i=255; i; i--) nr[i]=nr[i-1]; nr[0]=0; ^~ main.cpp: In instantiation of 'void sortingUtils::radixSort(RandomIt, RandomIt) [with T = int; RandomIt = int*]': main.cpp:64:40: required from here main.cpp:43:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0; i<sec.size(); i++) nr[(sec[i]>>(8*cnt+8))&255]++; main.cpp:48:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0; i<sec.size(); i++)
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
13ms131kbOK1030
222ms917kbOK10
3195ms8126kbOK10
4188ms8126kbOK100
52002ms80154kbTime limit exceeded0
61929ms80187kbOK10
7230ms8126kbOK10
82007ms80183kbTime limit exceeded00
92001ms80175kbTime limit exceeded0
101955ms80117kbOK10
Punctaj total30

Ceva nu functioneaza?