| Problem | ssq |
|---|---|
| User | R9q5P8 |
| Submission Time | 2026-11-11 14:49:04 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
ssq.cpp: In function ‘int main()’:
ssq.cpp:61:50: error: no matching function for call to ‘accumulate(std::vector<int>::iterator, std::vector<int>::iterator)’
61 | cout << accumulate(v.begin(), v.end()) << '\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 ssq.cpp:1:
/usr/include/c++/9/bits/stl_numeric.h:132:5: note: candidate: ‘template<class _InputIterator, class _Tp> _Tp std::accumulate(_InputIterator, _InputIterator, _Tp)’
132 | accumulate(_InputIterator __first, _InputIterator __last, _Tp __init)
| ^~~~~~~~~~
/usr/include/c++/9/bits/stl_numeric.h:132:5: note: template argument deduction/substitution failed:
ssq.cpp:61:50: note: candidate expects 3 arguments, 2 provided
61 | cout << accumulate(v.begi