Borderou de evaluare (job #3216562)

Utilizator leslyLesly Anda lesly Data 18 martie 2024 06:31:26
Problema Drumuri2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:22:13: error: 'Edges' was not declared in this scope; did you mean 'Edge'? 22 | vector <Edges> edges; // lista de aristas del grafo de interes | ^~~~~ | Edge main.cpp:22:18: error: template argument 1 is invalid 22 | vector <Edges> edges; // lista de aristas del grafo de interes | ^ main.cpp:22:18: error: template argument 2 is invalid main.cpp: In constructor 'FordFulkerson::FordFulkerson(std::vector<std::vector<std::pair<int, long long int> > >)': main.cpp:12:68: error: 'graph' was not declared in this scope; did you mean 'isgraph'? 12 | FordFulkerson(vector < vector < pair < int, long long> > >): g(graph){} | ^~~~~ | isgraph main.cpp: In member function 'void FordFulkerson::init()': main.cpp:26:16: error: request for member 'clear' in '((FordFulkerson*)this)->FordFulkerson::edges', which is of non-class type 'int' 26 | edges. clear(); | ^~~~~ main.cpp:29:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<std::pair<int, long long int> > >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 29 | for(int i = 0; i < g.size(); i++){ | ~~^~~~~~~~~~ main.cpp:30:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 30 | for(int j = 0; j < g[i].size(), j++){ | ~~^~~~~~~~~~~~~ main.cpp:30:30: warning: value computed is not used [-Wunused-value] main.cpp:30:48: error: expected ';' before ')' token 30 | for(int j = 0; j < g[i].size(), j++){ | ^ main.cpp:31:23: error: request for member 'push_back' in '((FordFulkerson*)this)->FordFulkerson::edges', which is of non-class type 'int' 31 | edges.push_back({g[i][j].second, 0 , g[i][j].first}); | ^~~~~~~~~ main.cpp:32:23: error: request for member 'push_back' in '((FordFulkerson*)this)->FordFulkerson::edges', which is of non-class type 'int' 32 | edges.push_back({0,0,i}); | ^~~~~~~~~ main.cpp:33:45: error: request for member 'size' in '((FordFulkerson*)this)->FordFulkerson::edges', which is of non-class type 'int' 33 | eIndexes[i].push_back(edges.size()-2); | ^~~~ main.cpp:34:57: error: request for member 'size' in '((FordFulkerson*)this)->FordFulkerson::edges', which is of non-class type 'int' 34 | eIndexes[g[i][j].first].push_back(edges.size()-1); | ^~~~ main.cpp: In member function 'bool FordFulkerson::findAndUpdate(int, int, long long int&)': main.cpp:41:76: error: no matching function for call to 'std::vector<std::vector<std::pair<int, int> > >::vector(std::vector<std::vector<std::pair<int, long long int> > >::size_type, std::pair<int, int>)' 41 | vector< vector< pair <int, int> > > from(g.size(), make_pair(-1,-1)); | ^ In file included from /usr/include/c++/12.2.1/vector:64, from /usr/include/c++/12.2.1/functional:62, from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:71, from main.cpp:1: /usr/include/c++/12.2.1/bits/stl_vector.h:702:9: note: candidate: 'template<class _InputIterator, class> constexpr std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with <template-parameter-2-2> = _InputIterator; _Tp = std::vector<std::pair<int, int> >; _Alloc = std::allocator<std::vector<std::pair<int, int> > >]' 702 | vector(_InputIterator __first, _InputIterator __last, | ^~~~~~ Non zero exit status: 1

Ceva nu functioneaza?