longesttrip.cpp: In function 'bool my_are_connected(std::vector<int>, std::vector<int>)':
longesttrip.cpp:12:13: error: 'unique' was not declared in this scope
12 | a.erase(unique(begin(a), end(a)), end(a));
| ^~~~~~
longesttrip.cpp: In function 'std::pair<int, int> cbin(std::vector<int>, std::vector<int>)':
longesttrip.cpp:18:5: error: 'shuffle' was not declared in this scope
18 | shuffle(begin(as), end(as), mt);
| ^~~~~~~
longesttrip.cpp: In function 'std::vector<int> longest_trip(int, int)':
longesttrip.cpp:48:5: error: 'shuffle' was not declared in this scope
48 | shuffle(begin(perm), end(perm), mt);
| ^~~~~~~
longesttrip.cpp:93:33: error: 'reverse' was not declared in this scope
93 | if (xs.back() != x) reverse(begin(xs), end(xs));
| ^~~~~~~
longesttrip.cpp:94:34: error: 'reverse' was not declared in this scope
94 | if (ys.front() != y) reverse(begin(ys), end(ys));
| ^~~~~~~
longesttrip.cpp:99:57: error: no matching function for call to 'find(std::vector<int>::iterator, std::vector<int>::iterator, std::tuple_element<0, std::pair<int, int> >::type&)'
99 | rotate(begin(xs), find(begin(xs), end(xs), x), end(xs));
| ^
In file included from /usr/include/c++/10/bits/locale_facets.h:48,
from /usr/include/c++/10/bits/basic_ios.h:37,
from /usr/include/c++/10/ios:44,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
from longesttrip.cpp:3:
/usr/include/c++/10/bits/streambuf_iterator.h:422:5: note: candidate: 'template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(std::istreambuf_iterator<_CharT>, std::istreambuf_iterator<_CharT>, const _CharT2&)'
422 | find(istreambuf_iterator<_CharT> __first,
| ^~~~
/usr/include/c++/10/bits/streambuf_iterator.h:422:5: note: template argument deduction/substitution failed:
longesttrip.cpp:99:57: note: '__gnu_cxx::__normal_iterator<int*, std::vector<int> >' is not derived from 'std::istreambuf_iterator<_CharT>'
99 | rotate(begin(xs), find(begin(xs), end(xs), x), end(xs));
| ^
longesttrip.cpp:99:13: error: 'rotate' was not declared in this scope
99 | rotate(begin(xs), find(begin(xs), end(xs), x), end(xs));
| ^~~~~~
longesttrip.cpp:100:57: error: no matching function for call to 'find(std::vector<int>::iterator, std::vector<int>::iterator, std::tuple_element<1, std::pair<int, int> >::type&)'
100 | rotate(begin(ys), find(begin(ys), end(ys), y), end(ys));
| ^
In file included from /usr/include/c++/10/bits/locale_facets.h:48,
from /usr/include/c++/10/bits/basic_ios.h:37,
from /usr/include/c++/10/ios:44,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
from longesttrip.cpp:3:
/usr/include/c++/10/bits/streambuf_iterator.h:422:5: note: candidate: 'template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(std::istreambuf_iterator<_CharT>, std::istreambuf_iterator<_CharT>, const _CharT2&)'
422 | find(istreambuf_iterator<_CharT> __first,
| ^~~~
/usr/include/c++/10/bits/streambuf_iterator.h:422:5: note: template argument deduction/substitution failed:
longesttrip.cpp:100:57: note: '__gnu_cxx::__normal_iterator<int*, std::vector<int> >' is not derived from 'std::istreambuf_iterator<_CharT>'
100 | rotate(begin(ys), find(begin(ys), end(ys), y), end(ys));
| ^
longesttrip.cpp:101:13: error: 'reverse' was not declared in this scope
101 | reverse(begin(xs), end(xs));
| ^~~~~~~