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_26167824_15931.cpp: In function 'void clear()':
0_0_26167824_15931.cpp:15:12: error: reference to 'map' is ambiguous
     memset(map,0,sizeof(map));
            ^
0_0_26167824_15931.cpp:12:16: note: candidates are: int map [107][107]
 int f[2][maxn],map[M][M];
                ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:80,
                 from 0_0_26167824_15931.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^
0_0_26167824_15931.cpp:15:25: error: reference to 'map' is ambiguous
     memset(map,0,sizeof(map));
                         ^
0_0_26167824_15931.cpp:12:16: note: candidates are: int map [107][107]
 int f[2][maxn],map[M][M];
                ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:80,
                 from 0_0_26167824_15931.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^
0_0_26167824_15931.cpp: In function 'int main()':
0_0_26167824_15931.cpp:26:49: error: reference to 'map' is ambiguous
         for(int i=1;i<=m;i++) x=read(),y=read(),map[x][y]=map[y][x]=1;
                                                 ^
0_0_26167824_15931.cpp:12:16: note: candidates are: int map [107][107]
 int f[2][maxn],map[M][M];
                ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:80,
                 from 0_0_26167824_15931.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^
0_0_26167824_15931.cpp:26:59: error: reference to 'map' is ambiguous
         for(int i=1;i<=m;i++) x=read(),y=read(),map[x][y]=map[y][x]=1;
                                                           ^
0_0_26167824_15931.cpp:12:16: note: candidates are: int map [107][107]
 int f[2][maxn],map[M][M];
                ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:80,
                 from 0_0_26167824_15931.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^
0_0_26167824_15931.cpp:34:63: error: reference to 'map' is ambiguous
                 for(int k1=1;k1<=k;k1++) if(!(j&(1<<(k1-1)))&&map[i][h[k1]]){
                                                               ^
0_0_26167824_15931.cpp:12:16: note: candidates are: int map [107][107]
 int f[2][maxn],map[M][M];
                ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:80,
                 from 0_0_26167824_15931.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^
0_0_26167824_15931.cpp:35:70: error: reference to 'map' is ambiguous
                     for(int k2=k1+1;k2<=k;k2++) if(!(j&(1<<(k2-1)))&&map[i][h[k2]]){
                                                                      ^
0_0_26167824_15931.cpp:12:16: note: candidates are: int map [107][107]
 int f[2][maxn],map[M][M];
                ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:80,
                 from 0_0_26167824_15931.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^


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-29 01:45:53, Gzip enabled