Problem duckhunt5
User weccs
Submission Time 2025-12-17 10:42:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt5.cpp: In function ‘int main()’:
duckhunt5.cpp:29:50: error: invalid use of non-static member function ‘std::multiset<_Key, _Compare, _Alloc>::iterator std::multiset<_Key, _Compare, _Alloc>::end() const [with _Key = long long int; _Compare = std::less<long long int>; _Alloc = std::allocator<long long int>; std::multiset<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<long long int>]’
29 | if (lower_bound(m.begin(),m.end(),x) == m.end) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from /usr/include/c++/9/set:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:87,
from duckhunt5.cpp:1:
/usr/include/c++/9/bits/stl_multiset.h:349:7: note: declared here
349 | end() const _GLIBCXX_NOEXCEPT
| ^~~