0_0_16293137_2398.cpp: In function 'int main()':
0_0_16293137_2398.cpp:22:31: error: 'memset' was not declared in this scope
memset(bM,0,sizeof(bM));
^
0_0_16293137_2398.cpp:24:16: error: reference to 'hash' is ambiguous
memset(hash,0,sizeof(hash));
^
0_0_16293137_2398.cpp:8:21: note: candidates are: int hash [27]
int b[N][N],g[N][N],hash[N];
^
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_16293137_2398.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_16293137_2398.cpp:24:30: error: reference to 'hash' is ambiguous
memset(hash,0,sizeof(hash));
^
0_0_16293137_2398.cpp:8:21: note: candidates are: int hash [27]
int b[N][N],g[N][N],hash[N];
^
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_16293137_2398.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_16293137_2398.cpp:29:13: error: reference to 'hash' is ambiguous
hash[str[0]-'a'+1]=1;
^
0_0_16293137_2398.cpp:8:21: note: candidates are: int hash [27]
int b[N][N],g[N][N],hash[N];
^
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_16293137_2398.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_16293137_2398.cpp:43:13: error: reference to 'rank' is ambiguous
rank[t]=1;
^
0_0_16293137_2398.cpp:9:17: note: candidates are: int rank [27]
int bM[N],gM[N],rank[N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
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++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:40,
from 0_0_16293137_2398.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_16293137_2398.cpp:63:20: error: reference to 'rank' is ambiguous
t=b[i][rank[i]++];
^
0_0_16293137_2398.cpp:9:17: note: candidates are: int rank [27]
int bM[N],gM[N],rank[N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
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++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:40,
from 0_0_16293137_2398.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_16293137_2398.cpp:82:16: error: reference to 'hash' is ambiguous
if(hash[i])
^
0_0_16293137_2398.cpp:8:21: note: candidates are: int hash [27]
int b[N][N],g[N][N],hash[N];
^
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_16293137_2398.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;
^
|