0_0_16454078_4912.cpp: In function 'int rank(int, int)':
0_0_16454078_4912.cpp:82:42: error: reference to 'rank' is ambiguous
if (data>key[t]) return size[left[t]]+1+rank(right[t],data);
^
0_0_16454078_4912.cpp:79:12: note: candidates are: int rank(int, int)
inline int rank(int t,int data)
^
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_16454078_4912.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_16454078_4912.cpp:83:31: error: reference to 'rank' is ambiguous
else if (data<key[t]) return rank(left[t],data);
^
0_0_16454078_4912.cpp:79:12: note: candidates are: int rank(int, int)
inline int rank(int t,int data)
^
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_16454078_4912.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_16454078_4912.cpp: In function 'int main()':
0_0_16454078_4912.cpp:148:5: error: reference to 'rank' is ambiguous
r=rank(root[find(u)],key[now]);
^
0_0_16454078_4912.cpp:79:12: note: candidates are: int rank(int, int)
inline int rank(int t,int data)
^
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_16454078_4912.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
|