Borderou de evaluare (job #2815129)

Utilizator FraNNNkieFrancesco-Gregorio Petrovici FraNNNkie Data 9 decembrie 2021 10:27:04
Problema Diametrul unui arbore Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In member function 'void weightedGraph::setEdgeCost(int, int, int)': main.cpp:52:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 52 | if(i <= m_costMatrix.size()){ | ~~^~~~~~~~~~~~~~~~~~~~~~ main.cpp:53:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 53 | if(j <= m_costMatrix[i].size()){ | ~~^~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'int weightedGraph::bfs_dist(int, std::vector<bool>&, std::vector<int>&)': main.cpp:85:30: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 85 | for(int i = 0; i < neighbours; ++i){ | ~~^~~~~~~~~~~~ main.cpp: In function 'void diametru_arbore(const string&, const string&)': main.cpp:19:25: warning: 'm' may be used uninitialized in this function [-Wmaybe-uninitialized] 19 | m_numberOfEdges = numberOfEdges; | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ main.cpp:146:18: note: 'm' was declared here 146 | int n, a, b, m; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms184kbOK10
22ms184kbOK10
32ms184kbOK10
42ms184kbOK10
511ms1146kbOK10
654ms4521kbOK10
782ms6336kbOK10
8139ms9539kbOK10
9102ms10989kbOK10
10191ms12386kbOK10
Punctaj total100

Ceva nu functioneaza?