Borderou de evaluare (job #2814141)

Utilizator TUdOr73Minciunescu Tudor TUdOr73 Data 7 decembrie 2021 17:22:25
Problema Diametrul unui arbore Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In member function 'int Graph::getGraphDiameter()': main.cpp:108:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 108 | for(int i = 1; i < distance.size(); i++) { // the maximum distance to a endNode | ~~^~~~~~~~~~~~~~~~~ main.cpp:117:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 117 | for(int i = 1; i< distance.size(); i++) { | ~^~~~~~~~~~~~~~~~~ main.cpp: In member function 'bool Graph::havelHakim(std::vector<int>)': main.cpp:187:18: warning: comparison of integer expressions of different signedness: '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 187 | if(grades[0] > grades.size()-1) main.cpp: In function 'int main()': main.cpp:412:18: warning: unused variable 'nrEdges' [-Wunused-variable] 412 | int nrNodes, nrEdges; | ^~~~~~~ main.cpp: In member function 'int Graph::getGraphDiameter()': main.cpp:116:27: warning: 'endNode' may be used uninitialized in this function [-Wmaybe-uninitialized] 116 | distance = BFS(endNode); // bfs from the endNode with the maximum distance | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms184kbOK10
22ms184kbOK10
32ms184kbOK10
42ms184kbOK10
511ms843kbOK10
644ms2781kbOK10
768ms3850kbOK10
8119ms5746kbOK10
983ms6447kbOK10
10158ms7421kbOK10
Punctaj total100

Ceva nu functioneaza?