ricehub.cpp: In function 'int besthub(int, int, int*, long long int)':
ricehub.cpp:38:28: error: 'max' was not declared in this scope; did you mean 'std::max'?
38 | if(costo<=B) maxim=max(maxim,der+izq+1);
| ^~~
| std::max
In file included from /usr/include/c++/10/bits/char_traits.h:39,
from /usr/include/c++/10/ios:40,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
from ricehub.cpp:1:
/usr/include/c++/10/bits/stl_algobase.h:300:5: note: 'std::max' declared here
300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~