Problem duckhunt0
User bribritt
Submission Time 2025-12-12 21:19:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt0.cpp: In function ‘void duckhunt24::main()’:
duckhunt0.cpp:757:19: error: no matching function for call to ‘partial_sum(long long int [n], long long int*)’
757 | partial_sum(a,a+n);
| ^
In file included from /usr/include/c++/9/numeric:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:84,
from duckhunt0.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:
duckhunt0.cpp:757:19: note: candidate expects 3 arguments, 2 provided
757 | partial_sum(a,a+n);
| ^
In file included from /usr/include/c