Borderou de evaluare (job #2661001)

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

Raport evaluator

Compilare: main.cpp: In function 'void sortingUtils::radixSort(RandomIt, RandomIt)': main.cpp:37:13: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(int i=(cntSize-1); i; i--) nr[i]=nr[i-1]; nr[0]=0; ^~~ main.cpp:37:59: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' for(int i=(cntSize-1); i; i--) nr[i]=nr[i-1]; nr[0]=0; ^~ main.cpp:46:13: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(int i=(cntSize-1); i; i--) nr[i]=nr[i-1]; nr[0]=0; ^~~ main.cpp:46:59: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' for(int i=(cntSize-1); i; i--) nr[i]=nr[i-1]; nr[0]=0; ^~ main.cpp: In function 'int main()': main.cpp:62:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=1; i<n; i++){ ~^~ main.cpp:66: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:65:40: required from here main.cpp:44:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0; i<sec.size(); i++) nr[(sec[i]>>(16*cnt+16))&(cntSize-1)]++; main.cpp:49: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
14ms393kbOK1030
214ms1179kbOK10
3127ms8388kbOK10
4122ms8388kbOK1040
51307ms80453kbOK10
61415ms80478kbOK10
7183ms8388kbOK10
81765ms80478kbOK1030
91918ms80359kbOK10
101814ms80465kbOK10
Punctaj total100

Ceva nu functioneaza?