ricehub.cpp:7:51: error: declaration of 'v' as array of references
7 | bool ok(int L, int R, int x, int& r, int& l, int& v[], long long& b) {
| ^
ricehub.cpp:7:54: error: expected ')' before ',' token
7 | bool ok(int L, int R, int x, int& r, int& l, int& v[], long long& b) {
| ~ ^
| )
ricehub.cpp:7:56: error: expected unqualified-id before 'long'
7 | bool ok(int L, int R, int x, int& r, int& l, int& v[], long long& b) {
| ^~~~
ricehub.cpp:17:40: error: declaration of 'v' as array of references
17 | bool check(int x, int& r, int& l, int& v[], long long& b) {
| ^
ricehub.cpp:17:43: error: expected ')' before ',' token
17 | bool check(int x, int& r, int& l, int& v[], long long& b) {
| ~ ^
| )
ricehub.cpp:17:45: error: expected unqualified-id before 'long'
17 | bool check(int x, int& r, int& l, int& v[], long long& b) {
| ^~~~