| Problem | duckhunt24 |
|---|---|
| User | smartsword |
| Submission Time | 2025-12-10 09:54:09 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
In file included from /usr/include/c++/9/numeric:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:84,
from duckhunt24.cpp:1:
/usr/include/c++/9/bits/stl_numeric.h: In instantiation of ‘_OutputIterator std::partial_sum(_InputIterator, _InputIterator, _OutputIterator) [with _InputIterator = long long int; _OutputIterator = long long int]’:
duckhunt24.cpp:19:40: required from here
/usr/include/c++/9/bits/stl_numeric.h:253:68: error: no type named ‘value_type’ in ‘struct std::iterator_traits<long long int>’
253 | typedef typename iterator_traits<_InputIterator>::value_type _ValueType;
| ^~~~~~~~~~
/usr/include/c++/9/bits/stl_numeric.h:264:7: error: invalid type argument of unary ‘*’ (have ‘long long int’)
264 | *__result = __value;
| ^~~~~~~~~
/usr/include/c++/9/bits/stl_numeric.h:267:45: error: inval