ricehub.cpp: In function 'int besthub(int, int, int*, long long int)':
ricehub.cpp:14:22: error: request for member 'size' in 'X', which is of non-class type 'int*'
for(int j=0; j<X.size; j++) V.push_back(abs(i-X[j]));
^~~~
ricehub.cpp:17:22: error: invalid use of member function 'std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::size_type = long unsigned int]' (did you forget the '()' ?)
for(int j=0; j<V.size; j++) {
~~^~~~