Problem | competition |
---|---|
User | Henries |
Submission Time | 2024-10-05 18:08:01 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
competition.cpp: In function ‘long long int solve(std::vector<long long int>, long long int)’:
competition.cpp:6:27: error: no matching function for call to ‘max_element(std::vector<long long int>&)’
6 | auto max = max_element(v);
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from competition.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:
competition.cpp:6:27: note: candidate expects 2 arguments, 1 provided
6 | auto max = max_element(v);
| ^
In file included