Borderou de evaluare (job #2837516)

Utilizator Mc_TaviMacovei Octavian-Cosmin Mc_Tavi Data 22 ianuarie 2022 11:22:10
Problema Arbore partial de cost minim Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'void unire(int, int)': main.cpp:43:5: warning: this 'else' clause does not guard... [-Wmisleading-indentation] 43 | else | ^~~~ main.cpp:45:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' 45 | if (l[x]==l[y]) | ^~ main.cpp: In function 'int main()': main.cpp:62:21: warning: comparison of integer expressions of different signedness: 'std::vector<Muchie>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 62 | while(sol.size()<n-1) //cat timp nu am selectat cele n-1 muchii | ~~~~~~~~~~^~~~ main.cpp:80:18: warning: format '%d' expects argument of type 'int', but argument 3 has type 'std::vector<Muchie>::size_type' {aka 'long unsigned int'} [-Wformat=] 80 | printf("%d\n%d\n", costmin, sol.size()); | ~^ ~~~~~~~~~~ | | | | int std::vector<Muchie>::size_type {aka long unsigned int} | %ld main.cpp:81:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Muchie>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 81 | for(int i=0;i<sol.size();i++) | ~^~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms184kbCorect10
22ms184kbCorect10
32ms184kbCorect10
42ms184kbCorect10
52ms184kbCorect10
6146ms2560kbCorect10
7280ms6434kbCorect10
854ms1179kbCorect10
950ms1155kbCorect10
10242ms4550kbCorect10
Punctaj total100

Ceva nu functioneaza?