0_0_16237671_32624.cpp: In function 'int rank(tree*&, int)':
0_0_16237671_32624.cpp:59:20: error: reference to 'rank' is ambiguous
if (d) return orz+rank(o->ch[d],x);
^
0_0_16237671_32624.cpp:54:5: note: candidates are: int rank(tree*&, int)
int rank(tree* &o,int x)
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
from 0_0_16237671_32624.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_16237671_32624.cpp:60:14: error: reference to 'rank' is ambiguous
else return rank(o->ch[d],x);
^
0_0_16237671_32624.cpp:54:5: note: candidates are: int rank(tree*&, int)
int rank(tree* &o,int x)
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
from 0_0_16237671_32624.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_16237671_32624.cpp: In function 'int main()':
0_0_16237671_32624.cpp:73:42: error: reference to 'rank' is ambiguous
for (j=a[i].y;j>=1;j-=lowbit(j)) ans+=rank(root[j],a[i].z);
^
0_0_16237671_32624.cpp:54:5: note: candidates are: int rank(tree*&, int)
int rank(tree* &o,int x)
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
from 0_0_16237671_32624.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
|