ricehub.cpp: In function 'int besthub(int, int, int*, long long int)':
ricehub.cpp:7:9: error: 'vector' was not declared in this scope
7 | vector <int> a;
| ^~~~~~
ricehub.cpp:7:17: error: expected primary-expression before 'int'
7 | vector <int> a;
| ^~~
ricehub.cpp:9:13: error: 'a' was not declared in this scope
9 | a.push_back(abs(X[r]-c));
| ^
ricehub.cpp:9:25: error: 'abs' was not declared in this scope
9 | a.push_back(abs(X[r]-c));
| ^~~
ricehub.cpp:10:14: error: 'a' was not declared in this scope
10 | sort(a.begin(),a.end());
| ^
ricehub.cpp:10:9: error: 'sort' was not declared in this scope; did you mean 'short'?
10 | sort(a.begin(),a.end());
| ^~~~
| short
ricehub.cpp:19:12: error: 'max' was not declared in this scope; did you mean 'mx'?
19 | mx=max(mx,ttl);
| ^~~
| mx