| Problem | paint |
|---|---|
| User | wahjsodhowasd |
| Submission Time | 2026-02-12 00:34:05 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
paint.cpp: In function ‘int main()’:
paint.cpp:15:40: error: no matching function for call to ‘accumulate(std::vector<int>::iterator, std::vector<int>::iterator)’
15 | Ans+=accumulate(jobs.begin(),jobs.end());
| ^
In file included from /usr/include/c++/9/numeric:62,
from paint.cpp:4:
/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:
paint.cpp:15:40: note: candidate expects 3 arguments, 2 provided
15 | Ans+=accumulate(jobs.begin(),jobs.end());
| ^
In file included from /usr/include/c++/9/numeric:62,