ricehub.cpp: In function 'int besthub(int, int, int*, long long int)':
ricehub.cpp:7:5: error: 'll' was not declared in this scope; did you mean 'ls'?
7 | ll inversion = 0LL;
| ^~
| ls
ricehub.cpp:11:9: error: 'inversion' was not declared in this scope
11 | inversion += ((ll) X[ls] - (ll) X[mediana]);
| ^~~~~~~~~
ricehub.cpp:11:27: error: expected ')' before 'X'
11 | inversion += ((ll) X[ls] - (ll) X[mediana]);
| ~ ^~
| )
ricehub.cpp:13:19: error: 'max' was not declared in this scope; did you mean 'std::max'?
13 | res = max(res, ls - li + 1);
| ^~~
| std::max
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from ricehub.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:3486:5: note: 'std::max' declared here
3486 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
ricehub.cpp:17:31: error: expected ')' before 'X'
17 | inversion -= ((ll) X[mediana] - (ll) X[li]);
| ~ ^~
| )
ricehub.cpp:20:35: error: expected ')' before 'X'
20 | inversion -= ((ll) X[nueva_mediana] - (ll) X[mediana]);
| ~ ^~
| )