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_18388850_1191.cpp: In function 'void init()':
0_0_18388850_1191.cpp:21:10: error: reference to 'hash' is ambiguous
   memset(hash, 0, sizeof(hash));
          ^
0_0_18388850_1191.cpp:16:6: note: candidates are: bool hash [362880]
 bool hash[362880];
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:1181:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:65,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:61,
                 from 0_0_18388850_1191.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^
0_0_18388850_1191.cpp:21:26: error: reference to 'hash' is ambiguous
   memset(hash, 0, sizeof(hash));
                          ^
0_0_18388850_1191.cpp:16:6: note: candidates are: bool hash [362880]
 bool hash[362880];
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:1181:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:65,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:61,
                 from 0_0_18388850_1191.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^
0_0_18388850_1191.cpp: In function 'bool bfs()':
0_0_18388850_1191.cpp:51:3: error: reference to 'hash' is ambiguous
   hash[ss] = true;
   ^
0_0_18388850_1191.cpp:16:6: note: candidates are: bool hash [362880]
 bool hash[362880];
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:1181:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:65,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:61,
                 from 0_0_18388850_1191.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^
0_0_18388850_1191.cpp:60:20: error: reference to 'move' is ambiguous
       int nx = x + move[i][0], ny = y + move[i][1];
                    ^
0_0_18388850_1191.cpp:13:11: note: candidates are: const int move [4][2]
 const int move[4][2] = {{-1, 0}, {1, 0}, {0, -1}, {0, 1}};
           ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
                 from 0_0_18388850_1191.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:408:5: note:                 template<class _Tp> std::_Deque_iterator<_Tp, _Tp&, _Tp*> std::move(std::_Deque_iterator<_Tp, _Tp&, _Tp*>, std::_Deque_iterator<_Tp, _Tp&, _Tp*>, std::_Deque_iterator<_Tp, _Tp&, _Tp*>)
     move(_Deque_iterator<_Tp, _Tp&, _Tp*> __first,
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:66:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
                 from 0_0_18388850_1191.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/deque.tcc:1009:5: note:                 template<class _Tp> std::_Deque_iterator<_Tp, _Tp&, _Tp*> std::move(std::_Deque_iterator<_Tp, const _Tp&, const _Tp*>, std::_Deque_iterator<_Tp, const _Tp&, const _Tp*>, std::_Deque_iterator<_Tp, _Tp&, _Tp*>)
     move(_Deque_iterator<_Tp, const _Tp&, const _Tp*> __first,
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:60:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
                 from 0_0_18388850_1191.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:489:5: note:                 template<class _II, class _OI> _OI std::move(_II, _II, _OI)
     move(_II __first, _II __last, _OI __result)
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:60,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
                 from 0_0_18388850_1191.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:101:5: note:                 template<class _Tp> constexpr typename std::remove_reference< <template-parameter-1-1> >::type&& std::move(_Tp&&)
     move(_Tp&& __t) noexcept
     ^
0_0_18388850_1191.cpp:61:22: error: 'ny' was not declared in this scope
       if (!is_in(nx, ny)) continue;
                      ^
0_0_18388850_1191.cpp:64:31: error: 'ny' was not declared in this scope
       ano_node.loc = nx * 3 + ny;
                               ^
0_0_18388850_1191.cpp:67:11: error: reference to 'hash' is ambiguous
       if (hash[ano_code]) continue;
           ^
0_0_18388850_1191.cpp:16:6: note: candidates are: bool hash [362880]
 bool hash[362880];
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:1181:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:65,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:61,
                 from 0_0_18388850_1191.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^
0_0_18388850_1191.cpp:68:7: error: reference to 'hash' is ambiguous
       hash[ano_code] = true;
       ^
0_0_18388850_1191.cpp:16:6: note: candidates are: bool hash [362880]
 bool hash[362880];
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:1181:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:65,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:61,
                 from 0_0_18388850_1191.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^


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-07-06 05:55:41, Gzip enabled