| Problem | duckhunt24 |
|---|---|
| User | smartsword |
| Submission Time | 2025-12-10 09:53:12 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
duckhunt24.cpp: In function ‘int main()’:
duckhunt24.cpp:19:29: error: no matching function for call to ‘partial_sum(long long int&, long long int&)’
19 | partial_sum(arr[0], arr[v])
| ^
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:250:5: note: candidate: ‘template<class _InputIterator, class _OutputIterator> _OutputIterator std::partial_sum(_InputIterator, _InputIterator, _OutputIterator)’
250 | partial_sum(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~~~
/usr/include/c++/9/bits/stl_numeric.h:250:5: note: template argument deduction/substitution failed:
duckhunt24.cpp:19:29: note: candidate expects 3 arguments, 2 provided
19 | partial_sum(arr[0], arr[v])
| ^
In file incl