ricehub.cpp: In function 'int besthub(int, int, int*, ll)':
ricehub.cpp:13:10: error: declaration of 'int l' shadows a parameter
int r=n,l=1,mid,ans=1;
^
ricehub.cpp:14:8: error: 'top' was not declared in this scope
while(top>=bot)
^~~
ricehub.cpp:14:13: error: 'bot' was not declared in this scope
while(top>=bot)
^~~
ricehub.cpp:14:13: note: suggested alternative: 'abort'
while(top>=bot)
^~~
abort
ricehub.cpp:24:10: error: 'get' was not declared in this scope
cost+=get(M,R)-(ll)(R-M+1)*x[M];
^~~
ricehub.cpp:24:10: note: suggested alternative:
In file included from /usr/include/c++/7/functional:54:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:71,
from ricehub.cpp:2:
/usr/include/c++/7/tuple:1361:5: note: 'std::get'
get(const tuple<_Types...>& __t) noexcept
^~~