Problem | flamethrower |
---|---|
User | chinesewarcriminal |
Submission Time | 2023-06-28 22:15:24 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:19:91: error: no matching function for call to ‘max_element(int*)’
19 | cout << accumulate(next(begin(v)), next(begin(v))+min((long)(*max_element(&(*begin(v))),k)+1,(long)(*(prev(end(v))))-(*(prev(end(v)))-(long)((*max_element(&(*begin(v)))))+(long)(k)-1),(long)&(*it)));
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from flamethrower.cpp:1:
/usr/include/c++/9/bits/stl_algo.h:5713:5: note: candidate: ‘template<class _FIter> constexpr _FIter std::max_element(_FIter, _FIter)’
5713 | max_element(_ForwardIterator __first, _ForwardIterator __last)
| ^~~~~~~~~~~
/usr/include/c++/9/bits/stl_algo.h:5713:5: note: template argument deduction/substitution failed:
flamethr