ricehub.cpp:8:37: error: declaration of 'X' as array of references
8 | long long cost(int st, int dr, int& X[]) {
| ^
ricehub.cpp: In function 'long long int cost(...)':
ricehub.cpp:9:14: error: 'st' was not declared in this scope; did you mean 's'?
9 | int mid = (st + dr) / 2;
| ^~
| s
ricehub.cpp:9:19: error: 'dr' was not declared in this scope
9 | int mid = (st + dr) / 2;
| ^~
ricehub.cpp:19:12: error: 'X' was not declared in this scope
19 | res += X[mid];
| ^
ricehub.cpp: In function 'int besthub(int, int, int*, long long int)':
ricehub.cpp:27:8: error: 'i64' was not declared in this scope
27 | for (i64 i = 0; i < R; i++) {
| ^~~
ricehub.cpp:27:19: error: 'i' was not declared in this scope
27 | for (i64 i = 0; i < R; i++) {
| ^