pipes.cpp: In function 'void AP(int, int, int)':
pipes.cpp:14:9: error: 'ch' was not declared in this scope
14 | ch = edgelist[k];
| ^~
pipes.cpp: In function 'int main()':
pipes.cpp:60:24: error: cannot convert 'std::vector<std::pair<int, int> >' to 'std::vector<int>&'
60 | vector<int>().swap(EL);
| ^~
| |
| std::vector<std::pair<int, int> >
In file included from /usr/include/c++/10/vector:67,
from /usr/include/c++/10/functional:62,
from /usr/include/c++/10/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/10/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from pipes.cpp:1:
/usr/include/c++/10/bits/stl_vector.h:1480:20: note: initializing argument 1 of 'void std::vector<_Tp, _Alloc>::swap(std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]'
1480 | swap(vector& __x) _GLIBCXX_NOEXCEPT
| ~~~~~~~~^~~