Borderou de evaluare (job #2944392)
Utilizator | Data | 22 noiembrie 2022 15:05:42 | |
---|---|---|---|
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: In member function 'bool Flow::bfs(int, int)':
main.cpp:94:24: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
94 | for (auto &[son, cap] : g[node]) {
| ^
main.cpp:93:17: warning: unused variable 'ind' [-Wunused-variable]
93 | int ind = 0;
| ^~~
main.cpp: In member function 'int Flow::dfs(int, int, int)':
main.cpp:108:20: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
108 | for (auto &[son, cap] : g[node]) {
| ^
main.cpp:116:89: error: no matching function for call to 'Flow::Edge::Edge(int&, int)'
116 | int poz = lower_bound(g[son].begin(), g[son].end(), Edge(node, (int)-1e9)) - g[son].begin();
| ^
main.cpp:55:12: note: candidate: 'Flow::Edge::Edge()'
55 | struct Edge {
| ^~~~
main.cpp:55:12: note: candidate expects 0 arguments, 2 provided
main.cpp:55:12: note: candidate: 'constexpr Flow::Edge::Edge(const Flow::Edge&)'
main.cpp:55:12: note: candidate expects 1 argument, 2 provided
main.cpp:55:12: note: candidate: 'constexpr Flow::Edge::Edge(Flow::Edge&&)'
main.cpp:55:12: note: candidate expects 1 argument, 2 provided
main.cpp: In function 'void solve(int)':
main.cpp:159:20: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
159 | for (auto& [j, cap] : flow.g[i]) {
| ^
main.cpp:143:8: warning: unused variable 't1' [-Wunused-variable]
143 | ld t1 = clock();
| ^~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !