0_0_39439153_4186.cpp: In function 'void bfs()':
0_0_39439153_4186.cpp:16:5: error: reference to 'hash' is ambiguous
16 | hash[n]=0;
| ^~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/string_view:42,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/basic_string.h:47,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/string:54,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/locale_classes.h:40,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ios_base.h:41,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ios:44,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ostream:40,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:41,
from 0_0_39439153_4186.cpp:1:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/functional_hash.h:59:12: note: candidates are: 'template<class _Tp> struct std::hash'
59 | struct hash;
| ^~~~
0_0_39439153_4186.cpp:6:5: note: 'int hash [100010]'
6 | int hash[len+10];//hash[i]用来保存走到位置i时是第几步
| ^~~~
0_0_39439153_4186.cpp:23:13: error: reference to 'hash' is ambiguous
23 | hash[k]=hash[temp]+1;
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/functional_hash.h:59:12: note: candidates are: 'template<class _Tp> struct std::hash'
59 | struct hash;
| ^~~~
0_0_39439153_4186.cpp:6:5: note: 'int hash [100010]'
6 | int hash[len+10];//hash[i]用来保存走到位置i时是第几步
| ^~~~
0_0_39439153_4186.cpp:23:21: error: reference to 'hash' is ambiguous
23 | hash[k]=hash[temp]+1;
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/functional_hash.h:59:12: note: candidates are: 'template<class _Tp> struct std::hash'
59 | struct hash;
| ^~~~
0_0_39439153_4186.cpp:6:5: note: 'int hash [100010]'
6 | int hash[len+10];//hash[i]用来保存走到位置i时是第几步
| ^~~~
0_0_39439153_4186.cpp:30:13: error: reference to 'hash' is ambiguous
30 | hash[temp-1]=hash[temp]+1;
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/functional_hash.h:59:12: note: candidates are: 'template<class _Tp> struct std::hash'
59 | struct hash;
| ^~~~
0_0_39439153_4186.cpp:6:5: note: 'int hash [100010]'
6 | int hash[len+10];//hash[i]用来保存走到位置i时是第几步
| ^~~~
0_0_39439153_4186.cpp:30:26: error: reference to 'hash' is ambiguous
30 | hash[temp-1]=hash[temp]+1;
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/functional_hash.h:59:12: note: candidates are: 'template<class _Tp> struct std::hash'
59 | struct hash;
| ^~~~
0_0_39439153_4186.cpp:6:5: note: 'int hash [100010]'
6 | int hash[len+10];//hash[i]用来保存走到位置i时是第几步
| ^~~~
0_0_39439153_4186.cpp:36:13: error: reference to 'hash' is ambiguous
36 | hash[temp+1]=hash[temp]+1;
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/functional_hash.h:59:12: note: candidates are: 'template<class _Tp> struct std::hash'
59 | struct hash;
| ^~~~
0_0_39439153_4186.cpp:6:5: note: 'int hash [100010]'
6 | int hash[len+10];//hash[i]用来保存走到位置i时是第几步
| ^~~~
0_0_39439153_4186.cpp:36:26: error: reference to 'hash' is ambiguous
36 | hash[temp+1]=hash[temp]+1;
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/functional_hash.h:59:12: note: candidates are: 'template<class _Tp> struct std::hash'
59 | struct hash;
| ^~~~
0_0_39439153_4186.cpp:6:5: note: 'int hash [100010]'
6 | int hash[len+10];//hash[i]用来保存走到位置i时是第几步
| ^~~~
0_0_39439153_4186.cpp:42:13: error: reference to 'hash' is ambiguous
42 | hash[temp*2]=hash[temp]+1;
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/functional_hash.h:59:12: note: candidates are: 'template<class _Tp> struct std::hash'
59 | struct hash;
| ^~~~
0_0_39439153_4186.cpp:6:5: note: 'int hash [100010]'
6 | int hash[len+10];//hash[i]用来保存走到位置i时是第几步
| ^~~~
0_0_39439153_4186.cpp:42:26: error: reference to 'hash' is ambiguous
42 | hash[temp*2]=hash[temp]+1;
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/functional_hash.h:59:12: note: candidates are: 'template<class _Tp> struct std::hash'
59 | struct hash;
| ^~~~
0_0_39439153_4186.cpp:6:5: note: 'int hash [100010]'
6 | int hash[len+10];//hash[i]用来保存走到位置i时是第几步
| ^~~~
0_0_39439153_4186.cpp: In function 'int main()':
0_0_39439153_4186.cpp:54:13: error: continue statement not within a loop
54 | continue;
| ^~~~~~~~
0_0_39439153_4186.cpp:58:15: error: reference to 'hash' is ambiguous
58 | cout<<hash[k]<<endl;
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/functional_hash.h:59:12: note: candidates are: 'template<class _Tp> struct std::hash'
59 | struct hash;
| ^~~~
0_0_39439153_4186.cpp:6:5: note: 'int hash [100010]'
6 | int hash[len+10];//hash[i]用来保存走到位置i时是第几步
| ^~~~
|