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_25135567_11762.cpp: In function 'void dfs(int, int, int)':
0_0_25135567_11762.cpp:25:45: error: reference to 'map' is ambiguous
             if(mx>=1&&mx<=n&&my>=1&&my<=m&&!map[mx][my]&&str[mx][my]!='X')
                                             ^
0_0_25135567_11762.cpp:6:5: note: candidates are: int map [10][10]
 int map[10][10],v[4][2]={0,1,0,-1,1,0,-1,0};
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:80,
                 from 0_0_25135567_11762.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_25135567_11762.cpp:27:17: error: reference to 'map' is ambiguous
                 map[mx][my]=1;
                 ^
0_0_25135567_11762.cpp:6:5: note: candidates are: int map [10][10]
 int map[10][10],v[4][2]={0,1,0,-1,1,0,-1,0};
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:80,
                 from 0_0_25135567_11762.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_25135567_11762.cpp:29:17: error: reference to 'map' is ambiguous
                 map[mx][my]=0;
                 ^
0_0_25135567_11762.cpp:6:5: note: candidates are: int map [10][10]
 int map[10][10],v[4][2]={0,1,0,-1,1,0,-1,0};
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:80,
                 from 0_0_25135567_11762.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_25135567_11762.cpp: In function 'int main()':
0_0_25135567_11762.cpp:39:17: error: expected primary-expression before '%' token
     while(scanf(%d%d%d,&n,&m,&k)!=EOF&&(n+m+k))
                 ^
0_0_25135567_11762.cpp:39:18: error: 'd' was not declared in this scope
     while(scanf(%d%d%d,&n,&m,&k)!=EOF&&(n+m+k))
                  ^
0_0_25135567_11762.cpp:41:16: error: reference to 'map' is ambiguous
         memset(map,0,sizeof(map));
                ^
0_0_25135567_11762.cpp:6:5: note: candidates are: int map [10][10]
 int map[10][10],v[4][2]={0,1,0,-1,1,0,-1,0};
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:80,
                 from 0_0_25135567_11762.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_25135567_11762.cpp:41:29: error: reference to 'map' is ambiguous
         memset(map,0,sizeof(map));
                             ^
0_0_25135567_11762.cpp:6:5: note: candidates are: int map [10][10]
 int map[10][10],v[4][2]={0,1,0,-1,1,0,-1,0};
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:80,
                 from 0_0_25135567_11762.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_25135567_11762.cpp:48:23: error: expected primary-expression before '%' token
                 scanf(%c,&str[i][j]);
                       ^
0_0_25135567_11762.cpp:48:24: error: 'c' was not declared in this scope
                 scanf(%c,&str[i][j]);
                        ^
0_0_25135567_11762.cpp:63:20: error: 'NO' was not declared in this scope
             printf(NO
                    ^
0_0_25135567_11762.cpp:69:13: error: reference to 'map' is ambiguous
             map[ax][ay]=1;
             ^
0_0_25135567_11762.cpp:6:5: note: candidates are: int map [10][10]
 int map[10][10],v[4][2]={0,1,0,-1,1,0,-1,0};
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:80,
                 from 0_0_25135567_11762.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_25135567_11762.cpp:72:24: error: 'YES' was not declared in this scope
                 printf(YES
                        ^
0_0_25135567_11762.cpp:75:24: error: 'NO' was not declared in this scope
                 printf(NO
                        ^


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-25 19:23:39, Gzip enabled