Borderou de evaluare (job #2661000)

Utilizator stefan.popescuPopescu Stefan stefan.popescu Data 21 octombrie 2020 00:32:26
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 function 'int main()': main.cpp:61:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=1; i<n; i++){ ~^~ main.cpp:65:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0; i<n; i+=10) ~^~ 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
215ms917kbOK10
3127ms8126kbOK10
4133ms8126kbOK100
51231ms80216kbOK10
61545ms80216kbOK10
7125ms8126kbIncorect0
81589ms80216kbIncorect00
91548ms80216kbIncorect0
101607ms80216kbIncorect0
Punctaj total30

Ceva nu functioneaza?