0_0_14932903_28565.cpp: In function 'int main()':
0_0_14932903_28565.cpp:91:7: error: reference to 'rank' is ambiguous
rank.clear();
^
0_0_14932903_28565.cpp:83: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_14932903_28565.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_14932903_28565.cpp:92:19: error: reference to 'rank' is ambiguous
rep1(i,1,n) rank[st[i].id] = i;
^
0_0_14932903_28565.cpp:83: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_14932903_28565.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_14932903_28565.cpp:96:23: error: reference to 'rank' is ambiguous
update(1,n,1,rank[st[i].id],st[i].a);
^
0_0_14932903_28565.cpp:83: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_14932903_28565.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_14932903_28565.cpp:97:39: error: reference to 'rank' is ambiguous
ans = (ans + query_sum(1,n,1,rank[st[i].id],n)*pow_(3,st[i].b)%mod)%mod;
^
0_0_14932903_28565.cpp:83: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_14932903_28565.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_14932903_28565.cpp:98:13: error: reference to 'rank' is ambiguous
if(rank[st[i].id]+1 <= n)mul(1,n,1,rank[st[i].id]+1,n);
^
0_0_14932903_28565.cpp:83: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_14932903_28565.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_14932903_28565.cpp:98:45: error: reference to 'rank' is ambiguous
if(rank[st[i].id]+1 <= n)mul(1,n,1,rank[st[i].id]+1,n);
^
0_0_14932903_28565.cpp:83: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_14932903_28565.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
|