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_39828551_12137.cpp: In function 'bool bfs()':
0_0_39828551_12137.cpp:23:45: error: reference to 'map' is ambiguous
   23 |                         if(vis[tz][tx][ty]||map[tz][tx][ty]) continue;
      |                                             ^~~
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_39828551_12137.cpp:6:25: note:                 'int map [15][15][15]'
    6 | int sx,sy,sz,ex,ey,ez,n,map[15][15][15],vis[15][15][15],ans;
      |                         ^~~
0_0_39828551_12137.cpp: In function 'int main()':
0_0_39828551_12137.cpp:38:41: error: reference to 'map' is ambiguous
   38 |                                         map[k][i][j]=ch=='X'?1: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_39828551_12137.cpp:6:25: note:                 'int map [15][15][15]'
    6 | int sx,sy,sz,ex,ey,ez,n,map[15][15][15],vis[15][15][15],ans;
      |                         ^~~


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-26 03:32:30, Gzip enabled