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_27868421_11582.cpp: In function 'int main()':
0_0_27868421_11582.cpp:51:15: error: reference to 'map' is ambiguous
    scanf("%s",map[i]+1);
               ^
0_0_27868421_11582.cpp:27:6: note: candidates are: char map [105][105]
 char map[105][105],ss[55];
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from 0_0_27868421_11582.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^
0_0_27868421_11582.cpp:53:8: error: reference to 'map' is ambiguous
     if(map[i][j]=='A'){//起点
        ^
0_0_27868421_11582.cpp:27:6: note: candidates are: char map [105][105]
 char map[105][105],ss[55];
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from 0_0_27868421_11582.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^
0_0_27868421_11582.cpp:57:8: error: reference to 'map' is ambiguous
     if(map[i][j]!='*'&&map[i][j]!='#'&&map[i][j]!='.'&&map[i][j]>c){
        ^
0_0_27868421_11582.cpp:27:6: note: candidates are: char map [105][105]
 char map[105][105],ss[55];
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from 0_0_27868421_11582.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^
0_0_27868421_11582.cpp:57:24: error: reference to 'map' is ambiguous
     if(map[i][j]!='*'&&map[i][j]!='#'&&map[i][j]!='.'&&map[i][j]>c){
                        ^
0_0_27868421_11582.cpp:27:6: note: candidates are: char map [105][105]
 char map[105][105],ss[55];
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from 0_0_27868421_11582.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^
0_0_27868421_11582.cpp:57:40: error: reference to 'map' is ambiguous
     if(map[i][j]!='*'&&map[i][j]!='#'&&map[i][j]!='.'&&map[i][j]>c){
                                        ^
0_0_27868421_11582.cpp:27:6: note: candidates are: char map [105][105]
 char map[105][105],ss[55];
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from 0_0_27868421_11582.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^
0_0_27868421_11582.cpp:57:56: error: reference to 'map' is ambiguous
     if(map[i][j]!='*'&&map[i][j]!='#'&&map[i][j]!='.'&&map[i][j]>c){
                                                        ^
0_0_27868421_11582.cpp:27:6: note: candidates are: char map [105][105]
 char map[105][105],ss[55];
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from 0_0_27868421_11582.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^
0_0_27868421_11582.cpp:58:8: error: reference to 'map' is ambiguous
      c=map[i][j];//终点的字母
        ^
0_0_27868421_11582.cpp:27:6: note: candidates are: char map [105][105]
 char map[105][105],ss[55];
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from 0_0_27868421_11582.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^
0_0_27868421_11582.cpp:60:8: error: reference to 'map' is ambiguous
     if(map[i][j]>='B'&&map[i][j]<='Z'){//每个目标点的位置
        ^
0_0_27868421_11582.cpp:27:6: note: candidates are: char map [105][105]
 char map[105][105],ss[55];
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from 0_0_27868421_11582.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^
0_0_27868421_11582.cpp:60:24: error: reference to 'map' is ambiguous
     if(map[i][j]>='B'&&map[i][j]<='Z'){//每个目标点的位置
                        ^
0_0_27868421_11582.cpp:27:6: note: candidates are: char map [105][105]
 char map[105][105],ss[55];
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from 0_0_27868421_11582.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^
0_0_27868421_11582.cpp:61:10: error: reference to 'map' is ambiguous
      sss[map[i][j]-'A'+1].x=i;
          ^
0_0_27868421_11582.cpp:27:6: note: candidates are: char map [105][105]
 char map[105][105],ss[55];
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from 0_0_27868421_11582.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^
0_0_27868421_11582.cpp:62:10: error: reference to 'map' is ambiguous
      sss[map[i][j]-'A'+1].y=j;
          ^
0_0_27868421_11582.cpp:27:6: note: candidates are: char map [105][105]
 char map[105][105],ss[55];
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from 0_0_27868421_11582.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^
0_0_27868421_11582.cpp:64:8: error: reference to 'map' is ambiguous
     if(map[i][j]>='a'&&map[i][j]<='z'){
        ^
0_0_27868421_11582.cpp:27:6: note: candidates are: char map [105][105]
 char map[105][105],ss[55];
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from 0_0_27868421_11582.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^
0_0_27868421_11582.cpp:64:24: error: reference to 'map' is ambiguous
     if(map[i][j]>='a'&&map[i][j]<='z'){
                        ^
0_0_27868421_11582.cpp:27:6: note: candidates are: char map [105][105]
 char map[105][105],ss[55];
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from 0_0_27868421_11582.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^
0_0_27868421_11582.cpp:65:10: error: reference to 'map' is ambiguous
      sss[map[i][j]-'a'+27].x=i;
          ^
0_0_27868421_11582.cpp:27:6: note: candidates are: char map [105][105]
 char map[105][105],ss[55];
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from 0_0_27868421_11582.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^
0_0_27868421_11582.cpp:66:10: error: reference to 'map' is ambiguous
      sss[map[i][j]-'a'+27].y=j;
          ^
0_0_27868421_11582.cpp:27:6: note: candidates are: char map [105][105]
 char map[105][105],ss[55];
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from 0_0_27868421_11582.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^
0_0_27868421_11582.cpp:84:8: error: reference to 'map' is ambiguous
     if(map[x][y]==ss[i+1]){//找到这次bfs的终点
        ^
0_0_27868421_11582.cpp:27:6: note: candidates are: char map [105][105]
 char map[105][105],ss[55];
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from 0_0_27868421_11582.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^
0_0_27868421_11582.cpp:91:37: error: reference to 'map' is ambiguous
      if(px>=1&&px<=n&&py>=1&&py<=m&&map[px][py]!='#'&&!viss[px][py]){
                                     ^
0_0_27868421_11582.cpp:27:6: note: candidates are: char map [105][105]
 cha


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-24 08:09:55, Gzip enabled