Borderou de evaluare (job #2814666)
Utilizator | Data | 8 decembrie 2021 13:18:40 | |
---|---|---|---|
Problema | Flux maxim | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'bool UndirectedGraph::havelHakimi(std::vector<int>)':
main.cpp:498: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]
498 | if(degrees[0] > degrees.size() - loops)
main.cpp: In member function 'std::vector<int> DirectedGraph::topologicalSorting()':
main.cpp:612:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<bool>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
612 | for(int node = 1; node < visited.size(); ++node)
| ~~~~~^~~~~~~~~~~~~~~~
main.cpp: In function 'void DISJOINT_SETS_INFO_ARENA()':
main.cpp:894:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<bool>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
894 | for(int i = 0; i < sameGroup.size(); i++)
| ~~^~~~~~~~~~~~~~~~~~
main.cpp: In function 'void MAX_FLOW_INFO_ARENA()':
main.cpp:953:37: error: no matching function for call to 'DirectedGraph::addEdge(int&, int&, int, int&)'
953 | dg.addEdge(x, y, 0, capacity);
| ^
main.cpp:540:6: note: candidate: 'void DirectedGraph::addEdge(int, int, int)'
540 | void DirectedGraph::addEdge(int node, int neighbour, int cost)
| ^~~~~~~~~~~~~
main.cpp:540:6: note: candidate expects 3 arguments, 4 provided
main.cpp:962:39: error: 'const struct edge' has no member named 'capacity'
962 | cap[i][it.neighbour] = it.capacity;
| ^~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !