Borderou de evaluare (job #2960729)
Utilizator | Data | 4 ianuarie 2023 21:29:09 | |
---|---|---|---|
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 function 'bool bfs()':
main.cpp:45:18: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
45 | auto [adjNode, capacity, reverseEdge] = node;
| ^
main.cpp:45:18: error: 'std::tuple<int, int, int> <structured bindings>' has incomplete type
45 | auto [adjNode, capacity, reverseEdge] = node;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'long long int cuplaj()':
main.cpp:71:48: error: 'get' was not declared in this scope; did you mean 'getw'?
71 | currentFlow = min(currentFlow, get < 0 > (adjList[first][second]));
| ^~~
| getw
main.cpp:79:25: error: 'get' was not declared in this scope; did you mean 'getw'?
79 | int w = get < 2 > (adjList[u][v]);
| ^~~
| getw
main.cpp:80:22: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
80 | auto [adjNode, capacity, reverseEdge] = adjList[u][v];
| ^
main.cpp:80:22: error: 'std::tuple<int, int, int> <structured bindings>' has incomplete type
80 | auto [adjNode, capacity, reverseEdge] = adjList[u][v];
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:81:22: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
81 | auto [adjNode2, capacity2, reverseEdge2] = adjList[y][w];
| ^
main.cpp:81:22: error: 'std::tuple<int, int, int> <structured bindings>' has incomplete type
81 | auto [adjNode2, capacity2, reverseEdge2] = adjList[y][w];
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:82:78: error: invalid use of incomplete type '__gnu_cxx::__alloc_traits<std::allocator<std::tuple<int, int, int> >, std::tuple<int, int, int> >::value_type' {aka 'class std::tuple<int, int, int>'}
82 | adjList[u][v] = {adjNode, capacity - currentFlow, reverseEdge};
| ^
In file included from /usr/include/c++/10/bits/move.h:57,
from /usr/include/c++/10/bits/nested_exception.h:40,
from /usr/include/c++/10/exception:148,
from /usr/include/c++/10/ios:39,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
from main.cpp:1:
/usr/include/c++/10/type_traits:2631:11: note: declaration of '__gnu_cxx::__alloc_traits<std::allocator<std::tuple<int, int, int> >, std::tuple<int, int, int> >::value_type' {aka 'class std::tuple<int, int, int>'}
2631 | class tuple;
| ^~~~~
main.cpp:83:81: error: invalid use of incomplete type '__gnu_cxx::__alloc_traits<std::allocator<std::tuple<int, int, int> >, std::tuple<int, int, int> >::value_type' {aka 'class std::tuple<int, int, int>'}
83 | adjList[y][w] = {adjNode2, capacity2 + currentFlow, reverseEdge2};
| ^
In file included from /usr/include/c++/10/bits/move.h:57,
from /usr/include/c++/10/bits/nested_exception.h:40,
from /usr/include/c++/10/exception:148,
from /usr/include/c++/10/ios:39,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !