Problem lis_easy
User personjs
Submission Time 2025-02-04 20:00:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis_easy.cpp: In function ‘int main()’:
lis_easy.cpp:12:10: error: ‘max’ was not declared in this scope; did you mean ‘std::max’?
12 | best = max(best, curr);
| ^~~
| std::max
In file included from /usr/include/c++/9/algorithm:62,
from lis_easy.cpp:2:
/usr/include/c++/9/bits/stl_algo.h:3468:5: note: ‘std::max’ declared here
3468 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~