Borderou de evaluare (job #2841529)

Utilizator anaop32Oprea Ana-Maria anaop32 Data 29 ianuarie 2022 20:44:31
Problema Arbore partial de cost minim Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 10

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:48:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 48 | for (int i = 0; i < lv[indMin].size(); i++){ | ~~^~~~~~~~~~~~~~~~~~~ main.cpp:49:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 49 | if (vizitat[lv[indMin][i].first] == false && lv[indMin][i].second < costuri[lv[indMin][i].first]) | ^~ main.cpp:51:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 51 | costuri[lv[indMin][i].first] = lv[indMin][i].second; | ^~~~~~~ main.cpp:50:46: warning: 'indMin' may be used uninitialized in this function [-Wmaybe-uninitialized] 50 | parinte[lv[indMin][i].first] = indMin;
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms262kbCost incorect0
22ms184kbCorect10
32ms184kbCost incorect0
46ms249kbCost incorect0
52ms184kbCost incorect0
61001ms4190kbTime limit exceeded0
71004ms8220kbTime limit exceeded0
81001ms1908kbTime limit exceeded0
9136ms1888kbCost incorect0
101003ms6656kbTime limit exceeded0
Punctaj total10

Ceva nu functioneaza?