F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_24956140_426.cpp:9:1: error: reference to 'unordered_map' is ambiguous
 unordered_map<int,long long>mp[2];
 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/tr1/unordered_map:42:0,
                 from 0_0_24956140_426.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/tr1/unordered_map.h:180:11: note: candidates are: template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> class std::tr1::unordered_map
     class unordered_map
           ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/unordered_map:48:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:115,
                 from 0_0_24956140_426.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/unordered_map.h:98:11: note:                 template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> class std::unordered_map
     class unordered_map
           ^
0_0_24956140_426.cpp:9:1: error: 'unordered_map' does not name a type
 unordered_map<int,long long>mp[2];
 ^
0_0_24956140_426.cpp: In function 'int main()':
0_0_24956140_426.cpp:29:3: error: 'mp' was not declared in this scope
   mp[p].clear();
   ^
0_0_24956140_426.cpp:36:10: error: reference to 'unordered_map' is ambiguous
      for(unordered_map<int,long long>::iterator it=mp[p].begin();it!=mp[p].end();it++){
          ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/tr1/unordered_map:42:0,
                 from 0_0_24956140_426.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/tr1/unordered_map.h:180:11: note: candidates are: template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> class std::tr1::unordered_map
     class unordered_map
           ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/unordered_map:48:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:115,
                 from 0_0_24956140_426.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/unordered_map.h:98:11: note:                 template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> class std::unordered_map
     class unordered_map
           ^
0_0_24956140_426.cpp:36:24: error: expected primary-expression before 'int'
      for(unordered_map<int,long long>::iterator it=mp[p].begin();it!=mp[p].end();it++){
                        ^
0_0_24956140_426.cpp:36:66: error: 'it' was not declared in this scope
      for(unordered_map<int,long long>::iterator it=mp[p].begin();it!=mp[p].end();it++){
                                                                  ^
0_0_24956140_426.cpp:44:10: error: reference to 'unordered_map' is ambiguous
      for(unordered_map<int,long long>::iterator it=mp[p].begin();it!=mp[p].end();it++){
          ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/tr1/unordered_map:42:0,
                 from 0_0_24956140_426.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/tr1/unordered_map.h:180:11: note: candidates are: template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> class std::tr1::unordered_map
     class unordered_map
           ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/unordered_map:48:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:115,
                 from 0_0_24956140_426.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/unordered_map.h:98:11: note:                 template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> class std::unordered_map
     class unordered_map
           ^
0_0_24956140_426.cpp:44:24: error: expected primary-expression before 'int'
      for(unordered_map<int,long long>::iterator it=mp[p].begin();it!=mp[p].end();it++){
                        ^
0_0_24956140_426.cpp:44:66: error: 'it' was not declared in this scope
      for(unordered_map<int,long long>::iterator it=mp[p].begin();it!=mp[p].end();it++){
                                                                  ^
0_0_24956140_426.cpp:73:8: error: reference to 'unordered_map' is ambiguous
    for(unordered_map<int,long long>::iterator it=mp[p].begin();it!=mp[p].end();it++){
        ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/tr1/unordered_map:42:0,
                 from 0_0_24956140_426.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/tr1/unordered_map.h:180:11: note: candidates are: template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> class std::tr1::unordered_map
     class unordered_map
           ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/unordered_map:48:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:115,
                 from 0_0_24956140_426.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/unordered_map.h:98:11: note:                 template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> class std::unordered_map
     class unordered_map
           ^
0_0_24956140_426.cpp:73:22: error: expected primary-expression before 'int'
    for(unordered_map<int,long long>::iterator it=mp[p].begin();it!=mp[p].end();it++){
                      ^
0_0_24956140_426.cpp:73:64: error: 'it' was not declared in this scope
    for(unordered_map<int,long long>::iterator it=mp[p].begin();it!=mp[p].end();it++){
                                                                ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-22 17:51:47, Gzip enabled