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_38596320_3220.cpp: In function 'int getSG(int)':
0_0_38596320_3220.cpp:9:9: error: reference to 'map' is ambiguous
     if (map[n][0] == 0) return sg[n] = 0;
         ^~~
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/map:61,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/x86_64-w64-mingw32/bits/stdc++.h:81,
                 from 0_0_38596320_3220.cpp:2:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_map.h:100:11: note: candidates are: 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
     class map
           ^~~
0_0_38596320_3220.cpp:5:5: note:                 'int map [1001][1001]'
 int map[N][N], sg[N];
     ^~~
0_0_38596320_3220.cpp:13:26: error: reference to 'map' is ambiguous
     for (int i = 1; i <= map[n][0]; i++)
                          ^~~
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/map:61,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/x86_64-w64-mingw32/bits/stdc++.h:81,
                 from 0_0_38596320_3220.cpp:2:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_map.h:100:11: note: candidates are: 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
     class map
           ^~~
0_0_38596320_3220.cpp:5:5: note:                 'int map [1001][1001]'
 int map[N][N], sg[N];
     ^~~
0_0_38596320_3220.cpp:14:19: error: reference to 'map' is ambiguous
         vis[getSG(map[n][i])] = 1;
                   ^~~
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/map:61,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/x86_64-w64-mingw32/bits/stdc++.h:81,
                 from 0_0_38596320_3220.cpp:2:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_map.h:100:11: note: candidates are: 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
     class map
           ^~~
0_0_38596320_3220.cpp:5:5: note:                 'int map [1001][1001]'
 int map[N][N], sg[N];
     ^~~
0_0_38596320_3220.cpp: In function 'int main()':
0_0_38596320_3220.cpp:25:26: error: reference to 'map' is ambiguous
             scanf("%d", &map[i][0]);
                          ^~~
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/map:61,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/x86_64-w64-mingw32/bits/stdc++.h:81,
                 from 0_0_38596320_3220.cpp:2:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_map.h:100:11: note: candidates are: 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
     class map
           ^~~
0_0_38596320_3220.cpp:5:5: note:                 'int map [1001][1001]'
 int map[N][N], sg[N];
     ^~~
0_0_38596320_3220.cpp:26:31: error: reference to 'map' is ambiguous
             for ( j = 1; j <= map[i][0]; j++)
                               ^~~
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/map:61,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/x86_64-w64-mingw32/bits/stdc++.h:81,
                 from 0_0_38596320_3220.cpp:2:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_map.h:100:11: note: candidates are: 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
     class map
           ^~~
0_0_38596320_3220.cpp:5:5: note:                 'int map [1001][1001]'
 int map[N][N], sg[N];
     ^~~
0_0_38596320_3220.cpp:27:30: error: reference to 'map' is ambiguous
                 scanf("%d", &map[i][j]);
                              ^~~
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/map:61,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/x86_64-w64-mingw32/bits/stdc++.h:81,
                 from 0_0_38596320_3220.cpp:2:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_map.h:100:11: note: candidates are: 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
     class map
           ^~~
0_0_38596320_3220.cpp:5:5: note:                 'int map [1001][1001]'
 int map[N][N], sg[N];
     ^~~


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 23:51:50, Gzip enabled