| Problem | potatosalad |
|---|---|
| User | GanJaeHan |
| Submission Time | 2026-01-28 17:07:10 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:20:22: error: no matching function for call to ‘max(<unresolved overloaded function type>, int&)’
20 | amax = max(max, sum);
| ^
In file included from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/ios:40,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from potatosalad.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:222:5: note: candidate: ‘constexpr const _Tp& std::max(const _Tp&, const _Tp&) [with _Tp = int]’
222 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/9/bits/stl_algobase.h:222:20: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘const int&’
222 | max(const _Tp& __a, const _Tp& __b)
| ~~~~~~~~~~~^~~
/usr/include/c++/9/bits/stl_algo