ricehub.cpp: In function 'int besthub(int, int, int*, int)':
ricehub.cpp:3:5: error: 'vector' was not declared in this scope
3 | vector<int> prefixSum(l,0);
| ^~~~~~
ricehub.cpp:3:12: error: expected primary-expression before 'int'
3 | vector<int> prefixSum(l,0);
| ^~~
ricehub.cpp:5:26: error: 'prefixSum' was not declared in this scope
5 | for(int i=1;i<=n;i++)prefixSum[i] = prefixSum[i-1]+x[i-1];
| ^~~~~~~~~
ricehub.cpp:10:37: error: 'prefixSum' was not declared in this scope
10 | cost = (mid-st)*x[mid]-(prefixSum[mid-1]-prefixSum[st-1]) + (prefixSum[en]-prefixSum[mid])-(en-mid)*x[mid];
| ^~~~~~~~~
ricehub.cpp:12:32: error: 'max' was not declared in this scope
12 | if(cost <= b)ans = max(ans,en-st+1);
| ^~~
ricehub.cpp:2:18: warning: unused variable 'mx_cost' [-Wunused-variable]
2 | int cost,mid,mx_cost,ans;
| ^~~~~~~