Borderou de evaluare (job #2961360)
Utilizator | Data | 6 ianuarie 2023 12:45:22 | |
---|---|---|---|
Problema | Cuplaj maxim in graf bipartit | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:28:9: error: 'Edge' was not declared in this scope
28 | vector <Edge> edges;
| ^~~~
main.cpp:28:13: error: template argument 1 is invalid
28 | vector <Edge> edges;
| ^
main.cpp:28:13: error: template argument 2 is invalid
main.cpp: In function 'void addEdge(int, int)':
main.cpp:43:23: error: request for member 'size' in 'edges', which is of non-class type 'int'
43 | int index = edges.size();
| ^~~~
main.cpp:50:11: error: request for member 'push_back' in 'edges', which is of non-class type 'int'
50 | edges.push_back(e1);
| ^~~~~~~~~
main.cpp:53:10: warning: unused variable 'e2' [-Wunused-variable]
53 | Edge e2 = {y, x, 0, index};
| ^~
main.cpp: In function 'int bfs()':
main.cpp:86:42: error: no match for call to '(std::vector<std::vector<int> >) (int&)'
86 | for (auto index_muchie: graph(nod))
| ^
main.cpp: In function 'int fordFulkerson()':
main.cpp:122:30: error: invalid types 'int[int]' for array subscript
122 | if (vizitat[edges[index_muchie].to && edges[edges[index].pozitie].capacity > 0])
| ^
main.cpp:122:63: error: 'index' was not declared in this scope
122 | if (vizitat[edges[index_muchie].to && edges[edges[index].pozitie].capacity > 0])
| ^~~~~
main.cpp:125:31: error: invalid types 'int[int]' for array subscript
125 | Edge e = edges[index_muchie];
| ^
main.cpp:130:55: error: invalid types 'int[__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}]' for array subscript
130 | capactiate = min(capactiate, edges[tata[nod]].capacity);
| ^
main.cpp:131:32: error: invalid types 'int[__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}]' for array subscript
131 | nod = edges[tata[nod]].from;
| ^
main.cpp:137:26: error: invalid types 'int[__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}]' for array subscript
137 | edges[tata[nod]].capacity -= capactiate;
| ^
main.cpp:138:32: error: invalid types 'int[__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}]' for array subscript
138 | edges[edges[tata[nod]].pozitie].capacity += capactiate;
| ^
main.cpp:139:32: error: invalid types 'int[__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}]' for array subscript
139 | nod = edges[tata[nod]].from;
| ^
main.cpp: At global scope:
main.cpp:148:1: error: expected declaration before '}' token
148 | }
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !