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_39698826_32300.cpp: In function 'void add(int, int, int)':
0_0_39698826_32300.cpp:12:12: error: reference to 'map' is ambiguous
   12 |         if(map[u][v]==-1){
      |            ^~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/map:63,
                 from .\stdc++.h:152:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_map.h:100:11: note: candidates are: 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
  100 |     class map
      |           ^~~
0_0_39698826_32300.cpp:4:5: note:                 'int map [1005][1005]'
    4 | int map[N][N],dis[N],t,s,d,n;
      |     ^~~
0_0_39698826_32300.cpp:13:17: error: reference to 'map' is ambiguous
   13 |                 map[u][v]=w;
      |                 ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_map.h:100:11: note: candidates are: 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
  100 |     class map
      |           ^~~
0_0_39698826_32300.cpp:4:5: note:                 'int map [1005][1005]'
    4 | int map[N][N],dis[N],t,s,d,n;
      |     ^~~
0_0_39698826_32300.cpp:16:17: error: reference to 'map' is ambiguous
   16 |                 map[u][v]=min(map[u][v],w);
      |                 ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_map.h:100:11: note: candidates are: 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
  100 |     class map
      |           ^~~
0_0_39698826_32300.cpp:4:5: note:                 'int map [1005][1005]'
    4 | int map[N][N],dis[N],t,s,d,n;
      |     ^~~
0_0_39698826_32300.cpp:16:31: error: reference to 'map' is ambiguous
   16 |                 map[u][v]=min(map[u][v],w);
      |                               ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_map.h:100:11: note: candidates are: 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
  100 |     class map
      |           ^~~
0_0_39698826_32300.cpp:4:5: note:                 'int map [1005][1005]'
    4 | int map[N][N],dis[N],t,s,d,n;
      |     ^~~
0_0_39698826_32300.cpp: In function 'void dijkstra(int)':
0_0_39698826_32300.cpp:36:28: error: reference to 'map' is ambiguous
   36 |                         if(map[u][v]!=-1&&dis[u]+map[u][v]<dis[v]){
      |                            ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_map.h:100:11: note: candidates are: 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
  100 |     class map
      |           ^~~
0_0_39698826_32300.cpp:4:5: note:                 'int map [1005][1005]'
    4 | int map[N][N],dis[N],t,s,d,n;
      |     ^~~
0_0_39698826_32300.cpp:36:50: error: reference to 'map' is ambiguous
   36 |                         if(map[u][v]!=-1&&dis[u]+map[u][v]<dis[v]){
      |                                                  ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_map.h:100:11: note: candidates are: 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
  100 |     class map
      |           ^~~
0_0_39698826_32300.cpp:4:5: note:                 'int map [1005][1005]'
    4 | int map[N][N],dis[N],t,s,d,n;
      |     ^~~
0_0_39698826_32300.cpp:38:52: error: reference to 'map' is ambiguous
   38 |                                 dis[v]=tp.w=dis[u]+map[u][v];
      |                                                    ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_map.h:100:11: note: candidates are: 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
  100 |     class map
      |           ^~~
0_0_39698826_32300.cpp:4:5: note:                 'int map [1005][1005]'
    4 | int map[N][N],dis[N],t,s,d,n;
      |     ^~~
0_0_39698826_32300.cpp: In function 'int main()':
0_0_39698826_32300.cpp:48:24: error: reference to 'map' is ambiguous
   48 |                 memset(map,-1,sizeof(map));
      |                        ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_map.h:100:11: note: candidates are: 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
  100 |     class map
      |           ^~~
0_0_39698826_32300.cpp:4:5: note:                 'int map [1005][1005]'
    4 | int map[N][N],dis[N],t,s,d,n;
      |     ^~~
0_0_39698826_32300.cpp:48:38: error: reference to 'map' is ambiguous
   48 |                 memset(map,-1,sizeof(map));
      |                                      ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_map.h:100:11: note: candidates are: 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
  100 |     class map
      |           ^~~
0_0_39698826_32300.cpp:4:5: note:                 'int map [1005][1005]'
    4 | int map[N][N],dis[N],t,s,d,n;
      |     ^~~


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 15:15:01, Gzip enabled