ricehub.cpp:1:27: error: 'vector' has not been declared
1 | int besthub(int n, int l, vector<int>& x, int tmp_b)
| ^~~~~~
ricehub.cpp:1:33: error: expected ',' or '...' before '<' token
1 | int besthub(int n, int l, vector<int>& x, int tmp_b)
| ^
ricehub.cpp: In function 'int besthub(int, int, int)':
ricehub.cpp:3:2: error: 'multiset' was not declared in this scope
3 | multiset<int> tmp;
| ^~~~~~~~
ricehub.cpp:3:11: error: expected primary-expression before 'int'
3 | multiset<int> tmp;
| ^~~
ricehub.cpp:4:30: error: 'tmp' was not declared in this scope
4 | for (int i = 0; i < n; i++) tmp.insert(x[i]);
| ^~~
ricehub.cpp:4:41: error: 'x' was not declared in this scope
4 | for (int i = 0; i < n; i++) tmp.insert(x[i]);
| ^
ricehub.cpp:9:12: error: expected primary-expression before 'int'
9 | multiset<int> ms = tmp;
| ^~~
ricehub.cpp:10:11: error: 'tmp_b' was not declared in this scope
10 | int b = tmp_b;
| ^~~~~
ricehub.cpp:13:15: error: 'ms' was not declared in this scope; did you mean 'mx'?
13 | auto it1 = ms.lower_bound(i);
| ^~
| mx
ricehub.cpp:30:9: error: 'min' was not declared in this scope
30 | if (min(num1 - i, i - num2) <= b)
| ^~~
ricehub.cpp:38:8: error: 'max' was not declared in this scope; did you mean 'mx'?
38 | mx = max(mx, ans);
| ^~~
| mx