ricehub.cpp:31:19: error: redefinition of 'long long int s [100005]'
long long s[100005];
^
ricehub.cpp:5:11: note: 'long long int s [100005]' previously declared here
long long s[100005];
^
ricehub.cpp: In function 'long long int can(int, int)':
ricehub.cpp:33:11: error: redefinition of 'long long int can(int, int)'
long long can(int l, int r){
^~~
ricehub.cpp:7:11: note: 'long long int can(int, int)' previously defined here
long long can(int l, int r){
^~~
ricehub.cpp: In function 'int besthub(int, int, int*, long long int)':
ricehub.cpp:39:5: error: redefinition of 'int besthub(int, int, int*, long long int)'
int besthub(int R, int L, int X[], long long B){
^~~~~~~
ricehub.cpp:13:5: note: 'int besthub(int, int, int*, long long int)' previously defined here
int besthub(int R, int L, int X[], long long B){
^~~~~~~