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_38710275_23644.cpp: In function 'void Floyd()':
0_0_38710275_23644.cpp:11:38: error: reference to 'map' is ambiguous
   11 |                         if(j == k || map[k][j] == inf){
      |                                      ^~~
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_38710275_23644.cpp:4:5: note:                 'int map [310][310]'
    4 | int map[310][310];
      |     ^~~
0_0_38710275_23644.cpp:15:36: error: reference to 'map' is ambiguous
   15 |                                 if(map[j][i] > map[j][k] + map[k][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_38710275_23644.cpp:4:5: note:                 'int map [310][310]'
    4 | int map[310][310];
      |     ^~~
0_0_38710275_23644.cpp:15:48: error: reference to 'map' is ambiguous
   15 |                                 if(map[j][i] > map[j][k] + map[k][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_38710275_23644.cpp:4:5: note:                 'int map [310][310]'
    4 | int map[310][310];
      |     ^~~
0_0_38710275_23644.cpp:15:60: error: reference to 'map' is ambiguous
   15 |                                 if(map[j][i] > map[j][k] + map[k][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_38710275_23644.cpp:4:5: note:                 'int map [310][310]'
    4 | int map[310][310];
      |     ^~~
0_0_38710275_23644.cpp:16:41: error: reference to 'map' is ambiguous
   16 |                                         map[j][i] = map[j][k] + map[k][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_38710275_23644.cpp:4:5: note:                 'int map [310][310]'
    4 | int map[310][310];
      |     ^~~
0_0_38710275_23644.cpp:16:53: error: reference to 'map' is ambiguous
   16 |                                         map[j][i] = map[j][k] + map[k][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_38710275_23644.cpp:4:5: note:                 'int map [310][310]'
    4 | int map[310][310];
      |     ^~~
0_0_38710275_23644.cpp:16:65: error: reference to 'map' is ambiguous
   16 |                                         map[j][i] = map[j][k] + map[k][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_38710275_23644.cpp:4:5: note:                 'int map [310][310]'
    4 | int map[310][310];
      |     ^~~
0_0_38710275_23644.cpp:19:41: error: reference to 'map' is ambiguous
   19 |                                 else if(map[j][i] == map[j][k] + map[k][i] && po[j][i] < po[j][k] + po[k][i] - 1){
      |                                         ^~~
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_38710275_23644.cpp:4:5: note:                 'int map [310][310]'
    4 | int map[310][310];
      |     ^~~
0_0_38710275_23644.cpp:19:54: error: reference to 'map' is ambiguous
   19 |                                 else if(map[j][i] == map[j][k] + map[k][i] && po[j][i] < po[j][k] + po[k][i] - 1){
      |                                                      ^~~
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_38710275_23644.cpp:4:5: note:                 'int map [310][310]'
    4 | int map[310][310];
      |     ^~~
0_0_38710275_23644.cpp:19:66: error: reference to 'map' is ambiguous
   19 |                                 else if(map[j][i] == map[j][k] + map[k][i] && po[j][i] < po[j][k] + po[k][i] - 1){
      |                                                                  ^~~
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_38710275_23644.cpp:4:5: note:                 'int map [310][310]'
    4 | int map[310][310];
      |     ^~~
0_0_38710275_23644.cpp: In function 'int solve(int, int, int, int)':
0_0_38710275_23644.cpp:27:12: error: reference to 'map' is ambiguous
   27 |         if(map[s1][e1] >= inf || map[s2][e2] >= inf){
      |            ^~~
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_38710275_23644.cpp:4:5: note:                 'int map [310][310]'
    4 | int map[310][310];
      |     ^~~
0_0_38710275_23644.cpp:27:34: error: reference to 'map' is ambiguous
   27 |         if(map[s1][e1] >= inf || map[s2][e2] >= inf){
      |                                  ^~~
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_38710275_23644.cpp:4:5: note:                 'int map [310][310]'
    4 | int map[310][310];
      |     ^~~
0_0_38710275_23644.cpp:33:16: error: reference to 'map' is ambiguous
   33 |             if(map[s1][i]+map[i][j]+map[j][e1]==map[s1][e1]&&map[s2][i]+map[i][j]+map[j][e2]==map[s2][e2]){
      |                ^~~
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_38710275_23644.cpp:4:5: note:                 'int map [310][310]'
    4 | int map[310][310];
      |     ^~~
0_0_38710275_23644.cpp:33:27: error: reference to 'map' is ambiguous
   33 |             if(map[s1][i]+map[i][j]+map[j][e1]==map[s1][e1]&&map[s2][i]+map[i][j]+map[j][e2]==map[s2][e2]){
      |                           ^~~
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_38710275_23644.cpp:4:5: note:                 'int map [310][310]'
    4 | int map[310][310];
      |     ^~~
0_0_38710275_23644.cpp:33:37: error: reference to 'map' is ambiguous
   33 |             if(map[s1][i]+map[i][j]+map[j][e1]==map[s1][e1]&&map[s2][i]+map[i][j]+map[j][e2]==map[s2][e2]){
      |                                     ^~~
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_38710275_23644.cpp:4:5: note:                 'int map [310][310]'
    4 | int map[310][310];
      |     ^~~
0_0_38710275_23644.cpp:33:49: error: reference to 'map' is ambiguous
   33 |             if(map[s1][i]+map[i][j]+map[j][e1]==map[s1][e1]&&map[s2][i]+map[i][j]+map[j][e2]==map[s2][e2]){
      |                                                 ^~~
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_38710275_23644.cpp:4:5: note:                 'int map [310][310]'
    4 | int map[310][310];
      |     ^~~
0_0_38710275_23644.cpp:33:62: error: reference to 'map' is ambiguous
   33 |             if(map[s1][i]+map[i][j]+map[j][e1]==map[s1][e1]&&map[s2][i]+map[i][j]+map[j][e2]==map[s2][e2]){
      |                                                              ^~~
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_38710275_23644.cpp:4:5: 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 03:47:57, Gzip enabled