Borderou de evaluare (job #2812827)
Utilizator | Data | 5 decembrie 2021 11:39:14 | |
---|---|---|---|
Problema | Floyd-Warshall/Roy-Floyd | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:291:21: error: no declaration matches 'std::vector<std::vector<int> > Graph::getMinCostMatrix()'
291 | vector<vector<int>> Graph::getMinCostMatrix()
| ^~~~~
main.cpp:291:21: note: no functions named 'std::vector<std::vector<int> > Graph::getMinCostMatrix()'
main.cpp:19:7: note: 'class Graph' defined here
19 | class Graph {
| ^~~~~
main.cpp: In member function 'bool UndirectedGraph::havelHakimi(std::vector<int>)':
main.cpp:470:23: 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]
470 | if(degrees[0] > degrees.size() - loops)
main.cpp: In member function 'std::vector<int> DirectedGraph::topologicalSorting()':
main.cpp:578:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<bool>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
578 | for(int node = 1; node < visited.size(); ++node)
| ~~~~~^~~~~~~~~~~~~~~~
main.cpp: In function 'void DISJOINT_SETS_INFO_ARENA()':
main.cpp:806:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<bool>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
806 | for(int i = 0; i < sameGroup.size(); i++)
| ~~^~~~~~~~~~~~~~~~~~
main.cpp: In function 'void ROY_FLOYD_INFO_ARENA()':
main.cpp:830:33: error: 'class Graph' has no member named 'getMinCostMatrix'
830 | vector<vector<int>> ans = g.getMinCostMatrix();
| ^~~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !