0_0_18226217_26948.cpp: In function 'int rank(Node*, LL)':
0_0_18226217_26948.cpp:83:16: error: reference to 'rank' is ambiguous
return rank(o->ch[0],x);
^
0_0_18226217_26948.cpp:78:5: note: candidates are: int rank(Node*, LL)
int rank(Node* o,LL 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_18226217_26948.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_18226217_26948.cpp:87:23: error: reference to 'rank' is ambiguous
return temp+1+rank(o->ch[1],x);
^
0_0_18226217_26948.cpp:78:5: note: candidates are: int rank(Node*, LL)
int rank(Node* o,LL 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_18226217_26948.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_18226217_26948.cpp: In function 'void dfs(int)':
0_0_18226217_26948.cpp:106:12: error: reference to 'rank' is ambiguous
ans += rank(tree,k/a[u]);
^
0_0_18226217_26948.cpp:78:5: note: candidates are: int rank(Node*, LL)
int rank(Node* o,LL 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_18226217_26948.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
|