ricehub.cpp:11:8: error: 'N' was not declared in this scope
11 | int pr[N],ans=-1e18;
| ^
ricehub.cpp:11:15: warning: overflow in conversion from 'double' to 'int' changes value from '-1.0e+18' to '-2147483648' [-Woverflow]
11 | int pr[N],ans=-1e18;
| ^~~~~
ricehub.cpp: In function 'int solve(int)':
ricehub.cpp:18:36: error: 'pr' was not declared in this scope
18 | if(X[k-1]*(k-l+1)-(pr[k]-pr[l-1])+(pr[mid]-pr[k])-(mid-k)*X[k-1]>B)r1=mid-1;
| ^~
ricehub.cpp: In function 'int besthub(int, int, int*, int)':
ricehub.cpp:24:29: error: 'pr' was not declared in this scope
24 | for(int i=0;i<R;i++)pr[i+1]+=pr[i]+X[i];
| ^~