ricehub.cpp: In function 'int besthub(int, int, int*, long long int)':
ricehub.cpp:37:11: error: 'max' was not declared in this scope
37 | ans = max(ans, pos - i + 1);
| ^~~
ricehub.cpp:37:11: note: suggested alternatives:
In file included from /usr/include/c++/13/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:51,
from ricehub.cpp:1:
/usr/include/c++/13/bits/stl_algo.h:5805:5: note: 'std::max'
5805 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
In file included from /usr/include/c++/13/algorithm:63:
/usr/include/c++/13/bits/ranges_algo.h:2928:29: note: 'std::ranges::max'
2928 | inline constexpr __max_fn max{};
| ^~~