0_0_17031524_4662.cpp: In function 'void add(int, int)':
0_0_17031524_4662.cpp:19:27: error: reference to 'next' is ambiguous
for (int p=head[pos];p;p=next[p])
^
0_0_17031524_4662.cpp:13:40: note: candidates are: int next [100010]
int hash[2][maxn],head[10010],to[maxn],next[maxn],tot[2],f[2][maxn];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61,
from 0_0_17031524_4662.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^
0_0_17031524_4662.cpp:20:8: error: reference to 'hash' is ambiguous
if (hash[now][to[p]]==s)
^
0_0_17031524_4662.cpp:13:5: note: candidates are: int hash [2][100010]
int hash[2][maxn],head[10010],to[maxn],next[maxn],tot[2],f[2][maxn];
^
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_17031524_4662.cpp:5:
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_17031524_4662.cpp:26:2: error: reference to 'hash' is ambiguous
hash[now][tot[now]]=s;
^
0_0_17031524_4662.cpp:13:5: note: candidates are: int hash [2][100010]
int hash[2][maxn],head[10010],to[maxn],next[maxn],tot[2],f[2][maxn];
^
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_17031524_4662.cpp:5:
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_17031524_4662.cpp:28:21: error: reference to 'next' is ambiguous
to[++num]=tot[now];next[num]=head[pos];head[pos]=num;
^
0_0_17031524_4662.cpp:13:40: note: candidates are: int next [100010]
int hash[2][maxn],head[10010],to[maxn],next[maxn],tot[2],f[2][maxn];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61,
from 0_0_17031524_4662.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^
0_0_17031524_4662.cpp: In function 'void dp()':
0_0_17031524_4662.cpp:64:2: error: reference to 'hash' is ambiguous
hash[now][1]=0;
^
0_0_17031524_4662.cpp:13:5: note: candidates are: int hash [2][100010]
int hash[2][maxn],head[10010],to[maxn],next[maxn],tot[2],f[2][maxn];
^
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_17031524_4662.cpp:5:
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_17031524_4662.cpp:68:33: error: reference to 'hash' is ambiguous
for (int j=1;j<=tot[now];j++) hash[now][j]<<=2;
^
0_0_17031524_4662.cpp:13:5: note: candidates are: int hash [2][100010]
int hash[2][maxn],head[10010],to[maxn],next[maxn],tot[2],f[2][maxn];
^
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_17031524_4662.cpp:5:
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_17031524_4662.cpp:77:11: error: reference to 'hash' is ambiguous
int s=hash[pre][k],num=f[pre][k]+a[i][j];
^
0_0_17031524_4662.cpp:13:5: note: candidates are: int hash [2][100010]
int hash[2][maxn],head[10010],to[maxn],next[maxn],tot[2],f[2][maxn];
^
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_17031524_4662.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
|