/in/foo.cc: In function 'int main()':
/in/foo.cc:78:3: error: reference to 'rank' is ambiguous
rank[i]=i;
^~~~
/in/foo.cc:61:6: note: candidates are: long long int rank [100010]
ll n,rank[MAXN],a[MAXN],s[MAXN],h[MAXN],m=0,t,ans=0;
^~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
from /usr/include/c++/6/bits/stl_pair.h:59,
from /usr/include/c++/6/utility:70,
from /usr/include/c++/6/algorithm:60,
from /in/foo.cc:2:
/usr/include/c++/6/type_traits:1482:12: note: template<class> struct std::rank
struct rank
^~~~
/in/foo.cc:81:7: error: reference to 'rank' is ambiguous
sort(rank+1,rank+1+n,cmp);
^~~~
/in/foo.cc:61:6: note: candidates are: long long int rank [100010]
ll n,rank[MAXN],a[MAXN],s[MAXN],h[MAXN],m=0,t,ans=0;
^~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
from /usr/include/c++/6/bits/stl_pair.h:59,
from /usr/include/c++/6/utility:70,
from /usr/include/c++/6/algorithm:60,
from /in/foo.cc:2:
/usr/include/c++/6/type_traits:1482:12: note: template<class> struct std::rank
struct rank
^~~~
/in/foo.cc:81:14: error: reference to 'rank' is ambiguous
sort(rank+1,rank+1+n,cmp);
^~~~
/in/foo.cc:61:6: note: candidates are: long long int rank [100010]
ll n,rank[MAXN],a[MAXN],s[MAXN],h[MAXN],m=0,t,ans=0;
^~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
from /usr/include/c++/6/bits/stl_pair.h:59,
from /usr/include/c++/6/utility:70,
from /usr/include/c++/6/algorithm:60,
from /in/foo.cc:2:
/usr/include/c++/6/type_traits:1482:12: note: template<class> struct std::rank
struct rank
^~~~
/in/foo.cc:86:5: error: reference to 'rank' is ambiguous
h[rank[i]]=m;
^~~~
/in/foo.cc:61:6: note: candidates are: long long int rank [100010]
ll n,rank[MAXN],a[MAXN],s[MAXN],h[MAXN],m=0,t,ans=0;
^~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
from /usr/include/c++/6/bits/stl_pair.h:59,
from /usr/include/c++/6/utility:70,
from /usr/include/c++/6/algorithm:60,
from /in/foo.cc:2:
/usr/include/c++/6/type_traits:1482:12: note: template<class> struct std::rank
struct rank
^~~~
/in/foo.cc:92:18: error: reference to 'rank' is ambiguous
ll res=ask(1,h[rank[L]],h[rank[R]]);
^~~~
/in/foo.cc:61:6: note: candidates are: long long int rank [100010]
ll n,rank[MAXN],a[MAXN],s[MAXN],h[MAXN],m=0,t,ans=0;
^~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
from /usr/include/c++/6/bits/stl_pair.h:59,
from /usr/include/c++/6/utility:70,
from /usr/include/c++/6/algorithm:60,
from /in/foo.cc:2:
/usr/include/c++/6/type_traits:1482:12: note: template<class> struct std::rank
struct rank
^~~~
/in/foo.cc:92:29: error: reference to 'rank' is ambiguous
ll res=ask(1,h[rank[L]],h[rank[R]]);
^~~~
/in/foo.cc:61:6: note: candidates are: long long int rank [100010]
ll n,rank[MAXN],a[MAXN],s[MAXN],h[MAXN],m=0,t,ans=0;
^~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
from /usr/include/c++/6/bits/stl_pair.h:59,
from /usr/include/c++/6/utility:70,
from /usr/include/c++/6/algorithm:60,
from /in/foo.cc:2:
/usr/include/c++/6/type_traits:1482:12: note: template<class> struct std::rank
struct rank
^~~~