timeismoney.cpp: In function 'int main()':
timeismoney.cpp:102:24: error: call of overloaded 'remove_if(std::vector<std::tuple<int, int, int, int> >::iterator, std::vector<std::tuple<int, int, int, int> >::iterator, main()::<lambda(auto:11)>)' is ambiguous
102 | auto it = remove_if(std::begin(edges), std::end(edges), [](auto edge) {
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
103 | /*
| ~~
104 | std::cout << " compare " << reduction[std::get<0>(edge)] << " & " << reduction[std::get<1>(edge)] << "\n";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
105 | */
| ~~
106 | return reduction[std::get<0>(edge)] == reduction[std::get<1>(edge)];
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
107 | });
| ~~
timeismoney.cpp:30:11: note: candidate: 'ForwardIt remove_if(ForwardIt, ForwardIt, UnaryPred) [with ForwardIt = __gnu_cxx::__normal_iterator<std::tuple<int, int, int, int>*, std::vector<std::tuple<int, int, int, int> > >; UnaryPred = main()::<lambda(auto:11)>]'
30 | ForwardIt remove_if(ForwardIt first, ForwardIt last, UnaryPred p) {
| ^~~~~~~~~
In file included from /usr/include/c++/11/string:52,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from timeismoney.cpp:1:
/usr/include/c++/11/bits/stl_algo.h:884:5: note: candidate: 'constexpr _FIter std::remove_if(_FIter, _FIter, _Predicate) [with _FIter = __gnu_cxx::__normal_iterator<std::tuple<int, int, int, int>*, std::vector<std::tuple<int, int, int, int> > >; _Predicate = main()::<lambda(auto:11)>]'
884 | remove_if(_ForwardIterator __first, _ForwardIterator __last,
| ^~~~~~~~~