Problem treecutting
User MegaG
Submission Time 2026-02-18 13:50:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

treecutting.cpp: In function ‘int main()’:
treecutting.cpp:53:62: error: no matching function for call to ‘find(std::vector<long long int>::iterator, std::vector<long long int>::iterator, std::tuple_element<1, std::pair<long long int, long long int> >::type&)’
53 | adj[eu].erase(find(adj[eu].begin(), adj[eu].end(), ev));
| ^
In file included from /usr/include/c++/9/bits/locale_facets.h:48,
from /usr/include/c++/9/bits/basic_ios.h:37,
from /usr/include/c++/9/ios:44,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from treecutting.cpp:1:
/usr/include/c++/9/bits/streambuf_iterator.h:373:5: note: candidate: ‘template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> &g