0_0_33005393_26987.cpp: In function 'void add(int, int, int)':
0_0_33005393_26987.cpp:28:19: error: reference to 'next' is ambiguous
p[cnt].next = next[from];
^
0_0_33005393_26987.cpp:22:30: note: candidates are: int next [500]
int dis[maxn],gap[maxn] ,cnt,next[maxn],s,e;// dis[i]为到达原点的层数
^
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++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_33005393_26987.cpp:4:
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_33005393_26987.cpp:29:5: error: reference to 'next' is ambiguous
next[from] = cnt++;
^
0_0_33005393_26987.cpp:22:30: note: candidates are: int next [500]
int dis[maxn],gap[maxn] ,cnt,next[maxn],s,e;// dis[i]为到达原点的层数
^
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++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_33005393_26987.cpp:4:
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_33005393_26987.cpp:33:19: error: reference to 'next' is ambiguous
p[cnt].next = next[to];
^
0_0_33005393_26987.cpp:22:30: note: candidates are: int next [500]
int dis[maxn],gap[maxn] ,cnt,next[maxn],s,e;// dis[i]为到达原点的层数
^
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++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_33005393_26987.cpp:4:
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_33005393_26987.cpp:34:5: error: reference to 'next' is ambiguous
next[to] = cnt++ ;
^
0_0_33005393_26987.cpp:22:30: note: candidates are: int next [500]
int dis[maxn],gap[maxn] ,cnt,next[maxn],s,e;// dis[i]为到达原点的层数
^
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++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_33005393_26987.cpp:4:
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_33005393_26987.cpp: In function 'int dfs(int, int)':
0_0_33005393_26987.cpp:42:14: error: reference to 'next' is ambiguous
for(i = next[pos];i != - 1; i = p[i].next)
^
0_0_33005393_26987.cpp:22:30: note: candidates are: int next [500]
int dis[maxn],gap[maxn] ,cnt,next[maxn],s,e;// dis[i]为到达原点的层数
^
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++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_33005393_26987.cpp:4:
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_33005393_26987.cpp: In function 'int main()':
0_0_33005393_26987.cpp:92:12: error: reference to 'next' is ambiguous
CL(next,-1);
^
0_0_33005393_26987.cpp:13:24: note: in definition of macro 'CL'
#define CL(a,b) memset(a,b,sizeof(a))
^
0_0_33005393_26987.cpp:22:30: note: candidates are: int next [500]
int dis[maxn],gap[maxn] ,cnt,next[maxn],s,e;// dis[i]为到达原点的层数
^
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++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_33005393_26987.cpp:4:
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_33005393_26987.cpp:92:12: error: reference to 'next' is ambiguous
CL(next,-1);
^
0_0_33005393_26987.cpp:13:35: note: in definition of macro 'CL'
#define CL(a,b) memset(a,b,sizeof(a))
^
0_0_33005393_26987.cpp:22:30: note: candidates are: int next [500]
int dis[maxn],gap[maxn] ,cnt,next[maxn],s,e;// dis[i]为到达原点的层数
^
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++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_33005393_26987.cpp:4:
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
^
|