0_0_15982667_29059.cpp: In function 'int main()':
0_0_15982667_29059.cpp:123:14: error: reference to 'rank' is ambiguous
int rk = rank(x);
^
0_0_15982667_29059.cpp:98:5: note: candidates are: int rank(int)
int rank(int x) {//¼ÓÐижÄâ½Úµã [1, n + 1]
^
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_15982667_29059.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_15982667_29059.cpp:134:24: error: reference to 'rank' is ambiguous
else printf("%d\n", rank(x) - 1);
^
0_0_15982667_29059.cpp:98:5: note: candidates are: int rank(int)
int rank(int x) {//¼ÓÐижÄâ½Úµã [1, n + 1]
^
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_15982667_29059.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
|