Borderou de evaluare (job #2660989)

Utilizator stefan.popescuPopescu Stefan stefan.popescu Data 20 octombrie 2020 23:49:47
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:66: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
217ms917kbOK10
3144ms8126kbOK10
4147ms8126kbOK100
51314ms80216kbOK10
61617ms80216kbOK10
7172ms8126kbIncorect0
81598ms80216kbIncorect00
91374ms80216kbIncorect0
101489ms80216kbIncorect0
Punctaj total30

Ceva nu functioneaza?