0_0_25738398_14901.cpp: In function 'bool check()':
0_0_25738398_14901.cpp:20:6: error: reference to 'hash' is ambiguous
i=hash[i];
^
0_0_25738398_14901.cpp:6:5: note: candidates are: int hash [20]
int hash[20];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
from 0_0_25738398_14901.cpp:2:
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_25738398_14901.cpp: In function 'int main()':
0_0_25738398_14901.cpp:40:4: error: reference to 'hash' is ambiguous
hash[i]=i;
^
0_0_25738398_14901.cpp:6:5: note: candidates are: int hash [20]
int hash[20];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
from 0_0_25738398_14901.cpp:2:
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_25738398_14901.cpp:46:9: error: reference to 'hash' is ambiguous
if(s[hash[0]]!='0'&&check())//不能有前导0,且交换次数等于k;
^
0_0_25738398_14901.cpp:6:5: note: candidates are: int hash [20]
int hash[20];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
from 0_0_25738398_14901.cpp:2:
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_25738398_14901.cpp:51:19: error: reference to 'hash' is ambiguous
sum=sum*10+s[hash[i]]-'0';
^
0_0_25738398_14901.cpp:6:5: note: candidates are: int hash [20]
int hash[20];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
from 0_0_25738398_14901.cpp:2:
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_25738398_14901.cpp:62:27: error: reference to 'hash' is ambiguous
}while(next_permutation(hash,hash+n));
^
0_0_25738398_14901.cpp:6:5: note: candidates are: int hash [20]
int hash[20];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
from 0_0_25738398_14901.cpp:2:
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_25738398_14901.cpp:62:32: error: reference to 'hash' is ambiguous
}while(next_permutation(hash,hash+n));
^
0_0_25738398_14901.cpp:6:5: note: candidates are: int hash [20]
int hash[20];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
from 0_0_25738398_14901.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
|