Borderou de evaluare (job #3214297)
Utilizator | Data | 14 martie 2024 05:28:02 | |
---|---|---|---|
Problema | Drumuri2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'void FordFulkerson::init()':
main.cpp:35:43: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<std::pair<int, int> > >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
35 | for (int i = 0; i < g.size(); i++){
| ~~^~~~~~~~~~
main.cpp:36:51: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
36 | for (int j = 0; j < g[i].size(); j++){
| ~~^~~~~~~~~~~~~
main.cpp: In member function 'bool FordFulkerson::findAndUpdate(int, int, int&)':
main.cpp:56:51: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
56 | for (int i = 0; i < eIndexes[u].size(); i++){
| ~~^~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'void DFS(std::vector<std::set<int> >&, std::vector<std::set<int> >&, std::vector<int>&, int)':
main.cpp:96:36: error: binding reference of type 'int&' to 'const int' discards qualifiers
96 | for(int &hijo : edges[padre]){
| ^
main.cpp:96:18: warning: loop variable 'hijo' of type 'int&' binds to a temporary constructed from type 'const int' [-Wrange-loop-construct]
96 | for(int &hijo : edges[padre]){
| ^~~~
main.cpp:96:18: note: use non-reference type 'int' to make the copy explicit or 'const int&' to prevent copying
main.cpp: In function 'int main()':
main.cpp:157:31: error: no matching function for call to 'FordFulkerson::FordFulkerson(std::vector<std::vector<std::pair<int, long long int> > >&)'
157 | FordFulkerson FF(grafo);
| ^
main.cpp:20:17: note: candidate: 'FordFulkerson::FordFulkerson(std::vector<std::vector<std::pair<int, int> > >&)'
20 | FordFulkerson( vector < vector < pair<int , int> > > &graph) : g(graph){}
| ^~~~~~~~~~~~~
main.cpp:20:71: note: no known conversion for argument 1 from 'std::vector<std::vector<std::pair<int, long long int> > >' to 'std::vector<std::vector<std::pair<int, int> > >&'
20 | FordFulkerson( vector < vector < pair<int , int> > > &graph) : g(graph){}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
main.cpp:18:7: note: candidate: 'constexpr FordFulkerson::FordFulkerson(const FordFulkerson&)'
18 | class FordFulkerson{
| ^~~~~~~~~~~~~
main.cpp:18:7: note: no known conversion for argument 1 from 'std::vector<std::vector<std::pair<int, long long int> > >' to 'const FordFulkerson&'
main.cpp:18:7: note: candidate: 'constexpr FordFulkerson::FordFulkerson(FordFulkerson&&)'
main.cpp:18:7: note: no known conversion for argument 1 from 'std::vector<std::vector<std::pair<int, long long int> > >' to 'FordFulkerson&&'
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !