| Problem | lunchbox |
|---|---|
| User | user8113912201514 |
| Submission Time | 2026-09-02 23:22:38 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:17:24: error: no matching function for call to ‘accumulate(bool)’
17 | while(accumulate(x > 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 lunchbox.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:
lunchbox.cpp:17:24: note: candidate expects 3 arguments, 1 provided
17 | while(accumulate(x > n) {
| ^
In file included from /usr/include/c++/9/numeric:62,
from /usr/i