| Problem | duckhunt5 |
|---|---|
| User | xyzidk9 |
| Submission Time | 2026-05-16 09:23:21 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
duckhunt5.cpp: In function ‘int main()’:
duckhunt5.cpp:19:33: error: no matching function for call to ‘lower_bound(int&)’
19 | auto iterator = lower_bound(x);
| ^
In file included from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/ios:40,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from duckhunt5.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:1004:5: note: candidate: ‘template<class _ForwardIterator, class _Tp> _ForwardIterator std::lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&)’
1004 | lower_bound(_ForwardIterator __first, _ForwardIterator __last,
| ^~~~~~~~~~~
/usr/include/c++/9/bits/stl_algobase.h:1004:5: note: template argument deduction/substitution failed:
duckhunt5.cpp:19:33: note: candidate expects 3 arguments, 1 provided
19 | auto iter