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_16231323_958.cpp: In function 'void buildgraph()':
0_0_16231323_958.cpp:27:17: error: reference to 'next' is ambiguous
   edge[2*i-1]=y,next[2*i-1]=first[x],first[x]=2*i-1;
                 ^
0_0_16231323_958.cpp:7:19: note: candidates are: int next [2400000]
 int edge[2400000],next[2400000],first[240000],edgeagain[2400000],nextagain[2400000],firstagain[240000];
                   ^
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_16231323_958.cpp:3:
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_16231323_958.cpp:28:15: error: reference to 'next' is ambiguous
   edge[2*i]=x,next[2*i]=first[y],first[y]=2*i;
               ^
0_0_16231323_958.cpp:7:19: note: candidates are: int next [2400000]
 int edge[2400000],next[2400000],first[240000],edgeagain[2400000],nextagain[2400000],firstagain[240000];
                   ^
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_16231323_958.cpp:3:
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_16231323_958.cpp: In function 'void tarjan(int, int)':
0_0_16231323_958.cpp:37:29: error: reference to 'next' is ambiguous
  for (int i=first[x];i!=0;i=next[i])
                             ^
0_0_16231323_958.cpp:7:19: note: candidates are: int next [2400000]
 int edge[2400000],next[2400000],first[240000],edgeagain[2400000],nextagain[2400000],firstagain[240000];
                   ^
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_16231323_958.cpp:3:
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_16231323_958.cpp: In function 'void buildgraphagain()':
0_0_16231323_958.cpp:63:33: error: reference to 'next' is ambiguous
      for (int j=first[i];j!=0;j=next[j])
                                 ^
0_0_16231323_958.cpp:7:19: note: candidates are: int next [2400000]
 int edge[2400000],next[2400000],first[240000],edgeagain[2400000],nextagain[2400000],firstagain[240000];
                   ^
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_16231323_958.cpp:3:
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_16231323_958.cpp: In function 'void longestlink(int)':
0_0_16231323_958.cpp:75:36: error: reference to 'next' is ambiguous
   for (int i=first[g[head]];i!=0;i=next[i])
                                    ^
0_0_16231323_958.cpp:7:19: note: candidates are: int next [2400000]
 int edge[2400000],next[2400000],first[240000],edgeagain[2400000],nextagain[2400000],firstagain[240000];
                   ^
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_16231323_958.cpp:3:
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_16231323_958.cpp:89:36: error: reference to 'next' is ambiguous
   for (int i=first[g[head]];i!=0;i=next[i])
                                    ^
0_0_16231323_958.cpp:7:19: note: candidates are: int next [2400000]
 int edge[2400000],next[2400000],first[240000],edgeagain[2400000],nextagain[2400000],firstagain[240000];
                   ^
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_16231323_958.cpp:3:
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
     ^


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-10-25 16:23:03, Gzip enabled