F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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;
            ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-26 22:31:59, Gzip enabled