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_39698768_14578.cpp: In function 'void Dijkstra()':
0_0_39698768_14578.cpp:13:27: error: reference to 'map' is ambiguous
   13 |                 dist[i] = map[0][i];
      |                           ^~~
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_39698768_14578.cpp:7:37: note:                 'int map [1005][1005]'
    7 | int s[1005], dist[1005], des[1005], map[1005][1005];
      |                                     ^~~
0_0_39698768_14578.cpp:30:52: error: reference to 'map' is ambiguous
   30 |                         if (s[i] == 0 && dist[u] + map[u][i] < dist[i]) {
      |                                                    ^~~
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_39698768_14578.cpp:7:37: note:                 'int map [1005][1005]'
    7 | int s[1005], dist[1005], des[1005], map[1005][1005];
      |                                     ^~~
0_0_39698768_14578.cpp:31:53: error: reference to 'map' is ambiguous
   31 |                                 dist[i] = dist[u] + map[u][i];
      |                                                     ^~~
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_39698768_14578.cpp:7:37: note:                 'int map [1005][1005]'
    7 | int s[1005], dist[1005], des[1005], map[1005][1005];
      |                                     ^~~
0_0_39698768_14578.cpp: In function 'int main()':
0_0_39698768_14578.cpp:51:33: error: reference to 'map' is ambiguous
   51 |                                 map[i][j] = MAX;
      |                                 ^~~
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_39698768_14578.cpp:7:37: note:                 'int map [1005][1005]'
    7 | int s[1005], dist[1005], des[1005], map[1005][1005];
      |                                     ^~~
0_0_39698768_14578.cpp:55:25: error: reference to 'map' is ambiguous
   55 |                         map[a][b] = t;
      |                         ^~~
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_39698768_14578.cpp:7:37: note:                 'int map [1005][1005]'
    7 | int s[1005], dist[1005], des[1005], map[1005][1005];
      |                                     ^~~
0_0_39698768_14578.cpp:56:25: error: reference to 'map' is ambiguous
   56 |                         map[b][a] = t;
      |                         ^~~
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_39698768_14578.cpp:7:37: note:                 'int map [1005][1005]'
    7 | int s[1005], dist[1005], des[1005], map[1005][1005];
      |                                     ^~~
0_0_39698768_14578.cpp:64:25: error: reference to 'map' is ambiguous
   64 |                         map[0][x] = 0;
      |                         ^~~
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_39698768_14578.cpp:7:37: note:                 'int map [1005][1005]'
    7 | int s[1005], dist[1005], des[1005], map[1005][1005];
      |                                     ^~~
0_0_39698768_14578.cpp:65:25: error: reference to 'map' is ambiguous
   65 |                         map[x][0] = 0;
      |                         ^~~
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_39698768_14578.cpp:7:37: note:                 'int map [1005][1005]'
    7 | int s[1005], dist[1005], des[1005], map[1005][1005];
      |                                     ^~~


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:59:54, Gzip enabled