ricehub.cpp: In function 'int besthub(int, int, int*, long long int)':
ricehub.cpp:9:18: error: 'x' was not declared in this scope
9 | a[j] = abs(x[i] - x[j]);
| ^
ricehub.cpp:9:14: error: 'abs' was not declared in this scope; did you mean 'ans'?
9 | a[j] = abs(x[i] - x[j]);
| ^~~
| ans
ricehub.cpp:11:5: error: 'sort' was not declared in this scope; did you mean 'short'?
11 | sort(a, a + R);
| ^~~~
| short
ricehub.cpp:21:11: error: 'max' was not declared in this scope
21 | ans = max(ans, cur);
| ^~~