Problem duckhunt5
User xyzidk9
Submission Time 2026-05-16 09:22:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt5.cpp: In function ‘int main()’:
duckhunt5.cpp:15:49: error: no matching function for call to ‘std::multiset<int>::find(std::multiset<int>::iterator, std::multiset<int>::iterator, int&)’
15 | auto iterator = pp.find(pp.begin(),pp.end(),x);
| ^
In file included from /usr/include/c++/9/set:62,
from duckhunt5.cpp:2:
/usr/include/c++/9/bits/stl_multiset.h:775:7: note: candidate: ‘std::multiset<_Key, _Compare, _Alloc>::iterator std::multiset<_Key, _Compare, _Alloc>::find(const key_type&) [with _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>; std::multiset<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<int>; std::multiset<_Key, _Compare, _Alloc>::key_type = int]’
775 | find(const key_type& __x)
| ^~~~
/usr/include/c++/9/bits/stl_multiset.h:775:7: note: candidate e