Problem | potatosalad |
---|---|
User | jovann |
Submission Time | 2025-05-19 18:17:11 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:6:6: error: statement cannot resolve address of overloaded function
6 | cin.ignore;
| ~~~~^~~~~~
potatosalad.cpp:12:34: error: no matching function for call to ‘max_element(int [n])’
12 | sam+=liest[max_element(liest)];
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from potatosalad.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:
potatosalad.cpp:12:34: note: candidate expects 2 arguments, 1 provided
12 | sam+=liest[max_