0_0_39412891_30195.cpp: In function 'void pick_Up()':
0_0_39412891_30195.cpp:26:19: error: reference to 'map' is ambiguous
26 | int num = map[pp.x][pp.y] - 'a';
| ^~~
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_39412891_30195.cpp:7:6: note: 'char map [105][105]'
7 | char map[105][105];
| ^~~
0_0_39412891_30195.cpp: In function 'int bfs()':
0_0_39412891_30195.cpp:46:20: error: reference to 'map' is ambiguous
46 | if(map[p.x][p.y]=='X')
| ^~~
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_39412891_30195.cpp:7:6: note: 'char map [105][105]'
7 | char map[105][105];
| ^~~
0_0_39412891_30195.cpp:54:29: error: reference to 'map' is ambiguous
54 | if(!map[pp.x][pp.y]||map[pp.x][pp.y]=='#')//判断边界
| ^~~
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_39412891_30195.cpp:7:6: note: 'char map [105][105]'
7 | char map[105][105];
| ^~~
0_0_39412891_30195.cpp:54:46: error: reference to 'map' is ambiguous
54 | if(!map[pp.x][pp.y]||map[pp.x][pp.y]=='#')//判断边界
| ^~~
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_39412891_30195.cpp:7:6: note: 'char map [105][105]'
7 | char map[105][105];
| ^~~
0_0_39412891_30195.cpp:56:28: error: reference to 'map' is ambiguous
56 | if(map[pp.x][pp.y]=='B'||map[pp.x][pp.y]=='A'||map[pp.x][pp.y]=='C'||map[pp.x][pp.y]=='D')//遇到门
| ^~~
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_39412891_30195.cpp:7:6: note: 'char map [105][105]'
7 | char map[105][105];
| ^~~
0_0_39412891_30195.cpp:56:50: error: reference to 'map' is ambiguous
56 | if(map[pp.x][pp.y]=='B'||map[pp.x][pp.y]=='A'||map[pp.x][pp.y]=='C'||map[pp.x][pp.y]=='D')//遇到门
| ^~~
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_39412891_30195.cpp:7:6: note: 'char map [105][105]'
7 | char map[105][105];
| ^~~
0_0_39412891_30195.cpp:56:72: error: reference to 'map' is ambiguous
56 | if(map[pp.x][pp.y]=='B'||map[pp.x][pp.y]=='A'||map[pp.x][pp.y]=='C'||map[pp.x][pp.y]=='D')//遇到门
| ^~~
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_39412891_30195.cpp:7:6: note: 'char map [105][105]'
7 | char map[105][105];
| ^~~
0_0_39412891_30195.cpp:56:94: error: reference to 'map' is ambiguous
56 | if(map[pp.x][pp.y]=='B'||map[pp.x][pp.y]=='A'||map[pp.x][pp.y]=='C'||map[pp.x][pp.y]=='D')//遇到门
| ^~~
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_39412891_30195.cpp:7:6: note: 'char map [105][105]'
7 | char map[105][105];
| ^~~
0_0_39412891_30195.cpp:58:40: error: reference to 'map' is ambiguous
58 | num = map[pp.x][pp.y] - 'A';//A门对应0,B门对应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_39412891_30195.cpp:7:6: note: 'char map [105][105]'
7 | char map[105][105];
| ^~~
0_0_39412891_30195.cpp:63:33: error: reference to 'map' is ambiguous
63 | else if(map[pp.x][pp.y]=='b'||map[pp.x][pp.y]=='a'||map[pp.x][pp.y]=='c'||map[pp.x][pp.y]=='d')//钥匙
| ^~~
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_39412891_30195.cpp:7:6: note: 'char map [105][105]'
7 | char map[105][105];
| ^~~
0_0_39412891_30195.cpp:63:55: error: reference to 'map' is ambiguous
63 | else if(map[pp.x][pp.y]=='b'||map[pp.x][pp.y]=='a'||map[pp.x][pp.y]=='c'||map[pp.x][pp.y]=='d')//钥匙
| ^~~
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_39412891_30195.cpp:7:6: note: 'char map [105][105]'
7 | char map[105][105];
| ^~~
0_0_39412891_30195.cpp:63:77: error: reference to 'map' is ambiguous
63 | else if(map[pp.x][pp.y]=='b'||map[pp.x][pp.y]=='a'||map[pp.x][pp.y]=='c'||map[pp.x][pp.y]=='d')//钥匙
| ^~~
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_39412891_30195.cpp:7:6: note: 'char map [105][105]'
7 | char map[105][105];
| ^~~
0_0_39412891_30195.cpp:63:99: error: reference to 'map' is ambiguous
63 | else if(map[pp.x][pp.y]=='b'||map[pp.x][pp.y]=='a'||map[pp.x][pp.y]=='c'||map[pp.x][pp.y]=='d')//钥匙
| ^~~
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_39412891_30195.cpp:7:6: note: 'char map [105][105]'
7 | char map[105][105];
| ^~~
0_0_39412891_30195.cpp: In function 'void init()':
0_0_39412891_30195.cpp:81:16: error: reference to 'map' is ambiguous
81 | memset(map,0,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_39412891_30195.cpp:7:6: note: 'char map [105][105]'
7 | char map[105][105];
| ^~~
0_0_39412891_30195.cpp:81:29: error: reference to 'map' is ambiguous
81 | memset(map,0,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_39412891_30195.cpp:7:6: note: 'char map [105][105]'
7 | char map[105][105];
| ^~~
0_0_39412891_30195.cpp: In function 'int main()':
0_0_39412891_30195.cpp:100:22: error: reference to 'map' is ambiguous
100 | cin>>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_39412891_30195.cpp:7:6: note: 'char map [105][105]'
7 | char map[105][105];
| ^~~
0_0_39412891_30195.cpp:101:20: error: reference to 'map' is ambiguous
101 | if(map[i][j]=='R'||map[i][j]=='r')//一开始忘记处理,遇到Y就崩了。。。
| ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_map.h:100:11: note
|