ricehub.cpp: In function 'int besthub(int, int, int*, long long int)':
ricehub.cpp:23:12: error: expected ',' or ';' before 'r'
int l = 0 r = 0, dif = -1;
^
ricehub.cpp:24:8: error: 'r' was not declared in this scope
while(r != n){
^
ricehub.cpp:25:14: error: expected primary-expression before ']' token
if(price(X[] ,l, r, B)){
^
ricehub.cpp:26:4: error: 'dif' was not declared in this scope
dif = max(dif, r - l + 1);
^~~
ricehub.cpp:26:10: error: 'max' was not declared in this scope
dif = max(dif, r - l + 1);
^~~
ricehub.cpp:32:9: error: 'dif' was not declared in this scope
return dif;
^~~