| Problem | duckhunt5 |
|---|---|
| User | nminhnguyenle |
| Submission Time | 2026-02-15 10:58:05 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
duckhunt5.cpp: In function ‘int main()’:
duckhunt5.cpp:40:9: 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>]’
40 | if(it==ms.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:3:
/usr/include/c++/9/bits/stl_multiset.h:349:7: note: declared here
349 | end() const _GLIBCXX_NOEXCEPT
| ^~~