ricehub.cpp: In function 'int besthub(int, int, int*, long long int)':
ricehub.cpp:17:8: error: expected ';' before ':' token
c++:
^
ricehub.cpp:24:10: error: 'max' was not declared in this scope
maxi = max(maxi, c);
^~~
ricehub.cpp:24:10: note: suggested alternative:
In file included from /usr/include/c++/7/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:65,
from ricehub.cpp:2:
/usr/include/c++/7/bits/stl_algo.h:3468:5: note: 'std::max'
max(initializer_list<_Tp> __l, _Compare __comp)
^~~