ricehub.cpp: In function 'long long int range_sum(int, int, int)':
ricehub.cpp:8:62: error: 'LLONG_MAX' was not declared in this scope
if (Left <= 0 || Right<=0 || Right>_R || Left>_R) return LLONG_MAX;
^~~~~~~~~
ricehub.cpp:8:62: note: suggested alternative: '__LONG_MAX__'
if (Left <= 0 || Right<=0 || Right>_R || Left>_R) return LLONG_MAX;
^~~~~~~~~
__LONG_MAX__
ricehub.cpp:10:12: error: 'abs' was not declared in this scope
return abs(tmp - _X[Target]*(Right-Left+1));
^~~
ricehub.cpp: In function 'int besthub(int, int, int*, long long int)':
ricehub.cpp:22:26: error: 'min' was not declared in this scope
int lo = 0, hi = min(i-1,R-i)+1;
^~~
ricehub.cpp:45:26: error: 'min' was not declared in this scope
int lo = 0, hi = min(i-1,R-i-1)+1;
^~~