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_32463273_21762.cpp: In function 'void bfs1()':
0_0_32463273_21762.cpp:52:10: error: reference to 'map' is ambiguous
  now.dis=map[now.x][now.y];
          ^
0_0_32463273_21762.cpp:12:7: note: candidates are: int map [55][55]
 int n,map[N][N],dis[N][N];
       ^
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_32463273_21762.cpp:2:
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_32463273_21762.cpp:82:25: error: reference to 'map' is ambiguous
    if(dis[now.x][now.y]+map[next.x][next.y] >= dis[next.x][next.y]) continue;
                         ^
0_0_32463273_21762.cpp:12:7: note: candidates are: int map [55][55]
 int n,map[N][N],dis[N][N];
       ^
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_32463273_21762.cpp:2:
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_32463273_21762.cpp:84:51: error: reference to 'map' is ambiguous
    next.dis=dis[next.x][next.y]=dis[now.x][now.y]+map[next.x][next.y];
                                                   ^
0_0_32463273_21762.cpp:12:7: note: candidates are: int map [55][55]
 int n,map[N][N],dis[N][N];
       ^
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_32463273_21762.cpp:2:
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_32463273_21762.cpp: In function 'int main()':
0_0_32463273_21762.cpp:188:16: error: reference to 'map' is ambiguous
    scanf("%d",&map[i][l]);
                ^
0_0_32463273_21762.cpp:12:7: note: candidates are: int map [55][55]
 int n,map[N][N],dis[N][N];
       ^
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_32463273_21762.cpp:2:
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_32463273_21762.cpp:198:17: error: reference to 'map' is ambiguous
   dis[n-1][n-1]=map[n-1][n-1];
                 ^
0_0_32463273_21762.cpp:12:7: note: candidates are: int map [55][55]
 int n,map[N][N],dis[N][N];
       ^
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_32463273_21762.cpp:2:
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-09-20 18:29:19, Gzip enabled