0_0_39049275_24178.cpp: In function 'int main()':
0_0_39049275_24178.cpp:13:30: error: reference to 'hash' is ambiguous
13 | for(i=0;i<111111;i++)hash[i]=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_39049275_24178.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_39049275_24178.cpp:4:5: note: 'int hash [111111]'
4 | int hash[111111];
| ^~~~
0_0_39049275_24178.cpp:15:14: error: reference to 'hash' is ambiguous
15 | k=10;hash[1]=1; //一开始1/n就会余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_39049275_24178.cpp:4:5: note: 'int hash [111111]'
4 | int hash[111111];
| ^~~~
0_0_39049275_24178.cpp:21:16: error: reference to 'hash' is ambiguous
21 | if(hash[k])break; //碰到余数相同就找完循环节末端了
| ^~~~
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_39049275_24178.cpp:4:5: note: 'int hash [111111]'
4 | int hash[111111];
| ^~~~
0_0_39049275_24178.cpp:22:13: error: reference to 'hash' is ambiguous
22 | hash[k]=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_39049275_24178.cpp:4:5: note: 'int hash [111111]'
4 | int hash[111111];
| ^~~~
|