/usr/include/c++/9/bits/predefined_ops.h: In instantiation of ‘bool __gnu_cxx::__ops::_Iter_equals_val<_Value>::operator()(_Iterator) [with _Iterator = std::_Rb_tree_iterator<std::pair<const int, int> >; _Value = const removeUnpaired(std::map<T1, T2>&, std::vector<T2>&) [with T1 = int; T2 = int]::<lambda(const auto:1&)>]’:
/usr/include/c++/9/bits/stl_algo.h:104:42: required from ‘_InputIterator std::__find_if(_InputIterator, _InputIterator, _Predicate, std::input_iterator_tag) [with _InputIterator = std::_Rb_tree_iterator<std::pair<const int, int> >; _Predicate = __gnu_cxx::__ops::_Iter_equals_val<const removeUnpaired(std::map<T1, T2>&, std::vector<T2>&) [with T1 = int; T2 = int]::<lambda(const auto:1&)> >]’