0_0_17380940_15094.cpp: In function 'void Solve()':
0_0_17380940_15094.cpp:172:16: error: reference to 'hash' is ambiguous
memset(hash, 0, sizeof(hash));
^
0_0_17380940_15094.cpp:85:32: note: candidates are: int hash [115]
int mat[maxn][maxn], fa[maxn], hash[maxn], ht = 0, sta[maxn], top;
^
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 GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_17380940_15094.cpp:6:
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_17380940_15094.cpp:172:32: error: reference to 'hash' is ambiguous
memset(hash, 0, sizeof(hash));
^
0_0_17380940_15094.cpp:85:32: note: candidates are: int hash [115]
int mat[maxn][maxn], fa[maxn], hash[maxn], ht = 0, sta[maxn], top;
^
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 GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_17380940_15094.cpp:6:
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_17380940_15094.cpp:207:17: error: reference to 'hash' is ambiguous
if (hash[tp] == 0) hash[tp] = ++ht;
^
0_0_17380940_15094.cpp:85:32: note: candidates are: int hash [115]
int mat[maxn][maxn], fa[maxn], hash[maxn], ht = 0, sta[maxn], top;
^
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 GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_17380940_15094.cpp:6:
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_17380940_15094.cpp:207:32: error: reference to 'hash' is ambiguous
if (hash[tp] == 0) hash[tp] = ++ht;
^
0_0_17380940_15094.cpp:85:32: note: candidates are: int hash [115]
int mat[maxn][maxn], fa[maxn], hash[maxn], ht = 0, sta[maxn], top;
^
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 GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_17380940_15094.cpp:6:
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_17380940_15094.cpp:211:25: error: reference to 'hash' is ambiguous
data[i].x = hash[tp];
^
0_0_17380940_15094.cpp:85:32: note: candidates are: int hash [115]
int mat[maxn][maxn], fa[maxn], hash[maxn], ht = 0, sta[maxn], top;
^
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 GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_17380940_15094.cpp:6:
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_17380940_15094.cpp:213:25: error: reference to 'hash' is ambiguous
data[i].y = hash[tp];
^
0_0_17380940_15094.cpp:85:32: note: candidates are: int hash [115]
int mat[maxn][maxn], fa[maxn], hash[maxn], ht = 0, sta[maxn], top;
^
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 GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_17380940_15094.cpp:6:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
|