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_39583977_4472.cpp: In function 'int main()':
0_0_39583977_4472.cpp:24:17: error: reference to 'map' is ambiguous
   24 |                 map[i][k] = c;
      |                 ^~~
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_39583977_4472.cpp:4:6: note:                 'char map [85][85]'
    4 | char map[85][85];
      |      ^~~
0_0_39583977_4472.cpp:25:17: error: reference to 'map' is ambiguous
   25 |                 map[k][i] = c;
      |                 ^~~
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_39583977_4472.cpp:4:6: note:                 'char map [85][85]'
    4 | char map[85][85];
      |      ^~~
0_0_39583977_4472.cpp:26:17: error: reference to 'map' is ambiguous
   26 |                 map[j][k] = c;
      |                 ^~~
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_39583977_4472.cpp:4:6: note:                 'char map [85][85]'
    4 | char map[85][85];
      |      ^~~
0_0_39583977_4472.cpp:27:17: error: reference to 'map' is ambiguous
   27 |                 map[k][j] = c;
      |                 ^~~
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_39583977_4472.cpp:4:6: note:                 'char map [85][85]'
    4 | char map[85][85];
      |      ^~~
0_0_39583977_4472.cpp:32:17: error: reference to 'map' is ambiguous
   32 |                 map[n - 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_39583977_4472.cpp:4:6: note:                 'char map [85][85]'
    4 | char map[85][85];
      |      ^~~
0_0_39583977_4472.cpp:33:13: error: reference to 'map' is ambiguous
   33 |             map[n - 1][n - 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_39583977_4472.cpp:4:6: note:                 'char map [85][85]'
    4 | char map[85][85];
      |      ^~~
0_0_39583977_4472.cpp:34:13: error: reference to 'map' is ambiguous
   34 |             map[0][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_39583977_4472.cpp:4:6: note:                 'char map [85][85]'
    4 | char map[85][85];
      |      ^~~
0_0_39583977_4472.cpp:35:13: error: reference to 'map' is ambiguous
   35 |             map[0][n - 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_39583977_4472.cpp:4:6: note:                 'char map [85][85]'
    4 | char map[85][85];
      |      ^~~
0_0_39583977_4472.cpp:41:25: error: reference to 'map' is ambiguous
   41 |                 cout << 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_39583977_4472.cpp:4:6: note:                 'char map [85][85]'
    4 | char map[85][85];
      |      ^~~


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-22 20:49:34, Gzip enabled