Borderou de evaluare (job #2821900)

Utilizator FraNNNkieFrancesco-Gregorio Petrovici FraNNNkie Data 23 decembrie 2021 11:48:05
Problema Arbore partial de cost minim Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In member function 'void Graph::setEdgeCost(int, int, int)': main.cpp:54:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 54 | if(i <= m_costMatrix.size()){ | ~~^~~~~~~~~~~~~~~~~~~~~~ main.cpp:55:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 55 | if(j <= m_costMatrix[i].size()){ | ~~^~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'int Graph::bfs_dist(int, std::vector<bool>&, std::vector<int>&)': main.cpp:144:30: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 144 | for(int i = 0; i < neighbours; ++i){ | ~~^~~~~~~~~~~~ main.cpp: In member function 'void minimumSpanningTree::createMst()': main.cpp:313:26: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 313 | for(int i = 0; i < sz; ++i){ | ~~^~~~ main.cpp: In function 'void pbDarb(const string&, const string&)': main.cpp:21:25: warning: 'm' may be used uninitialized in this function [-Wmaybe-uninitialized] 21 | m_numberOfEdges = numberOfEdges; | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ main.cpp:396:18: note: 'm' was declared here 396 | int n, a, b, m; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms184kbCorect10
22ms184kbCorect10
32ms184kbCorect10
42ms184kbCorect10
52ms184kbCorect10
6126ms3739kbCorect10
7232ms8245kbCorect10
849ms1560kbCorect10
954ms1675kbCorect10
10203ms6119kbCorect10
Punctaj total100

Ceva nu functioneaza?