Problem feast
User PlayVoltz
Submission Time 2023-12-07 20:04:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

feast.cpp: In function ‘int32_t main()’:
feast.cpp:44:46: error: no matching function for call to ‘std::set<std::pair<long long int, long long int> >::erase(long long int, long long int&)’
44 | sab.erase(abs(second.second), second.first);
| ^
In file included from /usr/include/c++/9/set:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:87,
from feast.cpp:1:
/usr/include/c++/9/bits/stl_set.h:654:7: note: candidate: ‘std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::erase(std::set<_Key, _Compare, _Alloc>::const_iterator) [with _Key = std::pair<long long int, long long int>; _Compare = std::less<std::pair<long long int, long long int> >; _Alloc = std::allocator<std::pair<long long int, long long int> >; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<