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_39454522_4802.cpp: In function 'int main()':
0_0_39454522_4802.cpp:17:29: error: reference to 'map' is ambiguous
   17 |                 scanf("%d",&map[i][j]);
      |                             ^~~
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_39454522_4802.cpp:4:5: note:                 'int map [55][55]'
    4 | int map[N][N],Next[2][4]={0,1,1,0,-1,0,0,-1};
      |     ^~~
0_0_39454522_4802.cpp:18:24: error: reference to 'map' is ambiguous
   18 |                 sum += map[i][j];
      |                        ^~~
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_39454522_4802.cpp:4:5: note:                 'int map [55][55]'
    4 | int map[N][N],Next[2][4]={0,1,1,0,-1,0,0,-1};
      |     ^~~
0_0_39454522_4802.cpp:19:20: error: reference to 'map' is ambiguous
   19 |                 if(map[i][j]> 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_39454522_4802.cpp:4:5: note:                 'int map [55][55]'
    4 | int map[N][N],Next[2][4]={0,1,1,0,-1,0,0,-1};
      |     ^~~
0_0_39454522_4802.cpp:28:20: error: reference to 'map' is ambiguous
   28 |                 if(map[i][j] > 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_39454522_4802.cpp:4:5: note:                 'int map [55][55]'
    4 | int map[N][N],Next[2][4]={0,1,1,0,-1,0,0,-1};
      |     ^~~
0_0_39454522_4802.cpp:29:34: error: reference to 'map' is ambiguous
   29 |                     sum = sum - (map[i][j]-1)*2;
      |                                  ^~~
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_39454522_4802.cpp:4:5: note:                 'int map [55][55]'
    4 | int map[N][N],Next[2][4]={0,1,1,0,-1,0,0,-1};
      |     ^~~
0_0_39454522_4802.cpp:36:32: error: reference to 'map' is ambiguous
   36 |                     sum -= min(map[x][y],map[i][j]);
      |                                ^~~
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_39454522_4802.cpp:4:5: note:                 'int map [55][55]'
    4 | int map[N][N],Next[2][4]={0,1,1,0,-1,0,0,-1};
      |     ^~~
0_0_39454522_4802.cpp:36:42: error: reference to 'map' is ambiguous
   36 |                     sum -= min(map[x][y],map[i][j]);
      |                                          ^~~
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_39454522_4802.cpp:4:5: note:                 'int map [55][55]'
    4 | int map[N][N],Next[2][4]={0,1,1,0,-1,0,0,-1};
      |     ^~~


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-28 17:21:23, Gzip enabled