0_0_39312935_17502.cpp: In function 'int main()':
0_0_39312935_17502.cpp:90:19: error: 'max' was not declared in this scope
90 | res = max(res,dp[i]);
| ^~~
0_0_39312935_17502.cpp:90:19: note: suggested alternatives:
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/algorithm:61,
from 0_0_39312935_17502.cpp:3:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algo.h:5805:5: note: 'std::max'
5805 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/algorithm:63:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_algo.h:2928:29: note: 'std::ranges::max'
2928 | inline constexpr __max_fn max{};
| ^~~
0_0_39312935_17502.cpp:97:29: error: 'max' was not declared in this scope
97 | dp[i] = max(dp[i], dp[j]+h);
| ^~~
0_0_39312935_17502.cpp:97:29: note: suggested alternatives:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algo.h:5805:5: note: 'std::max'
5805 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_algo.h:2928:29: note: 'std::ranges::max'
2928 | inline constexpr __max_fn max{};
| ^~~
|