0_0_21635167_25425.cpp: In function 'int main()':
0_0_21635167_25425.cpp:86:15: error: reference to 'rank' is ambiguous
k=0; rank.clear();
^
0_0_21635167_25425.cpp:32:14: note: candidates are: std::map<int, int> rank
map<int,int >rank;//避免了开数组
^
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_21635167_25425.cpp:21:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_21635167_25425.cpp:107:9: error: reference to 'rank' is ambiguous
rank[b[0]]=1;
^
0_0_21635167_25425.cpp:32:14: note: candidates are: std::map<int, int> rank
map<int,int >rank;//避免了开数组
^
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_21635167_25425.cpp:21:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_21635167_25425.cpp:111:17: error: reference to 'rank' is ambiguous
rank[b[i]]=++j;
^
0_0_21635167_25425.cpp:32:14: note: candidates are: std::map<int, int> rank
map<int,int >rank;//避免了开数组
^
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_21635167_25425.cpp:21:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_21635167_25425.cpp:119:24: error: reference to 'rank' is ambiguous
update(rank[-val[i]],val[i],1);
^
0_0_21635167_25425.cpp:32:14: note: candidates are: std::map<int, int> rank
map<int,int >rank;//避免了开数组
^
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_21635167_25425.cpp:21:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_21635167_25425.cpp:121:24: error: reference to 'rank' is ambiguous
update(rank[val[i]],val[i],1);
^
0_0_21635167_25425.cpp:32:14: note: candidates are: std::map<int, int> rank
map<int,int >rank;//避免了开数组
^
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_21635167_25425.cpp:21:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
|