1_645_2287_21634.cpp: In function 'void Add(int, int, int)':
1_645_2287_21634.cpp:11:8: error: reference to 'next' is ambiguous
tot++;next[tot]=head[x];head[x]=tot;point[tot]=y;w[tot]=z;
^
1_645_2287_21634.cpp:7:50: note: candidates are: int next [2222222]
int head[558888],d1[558888],d2[558888],d[558888],next[2222222],point[2222222],w[2222222],Q[2222222];
^
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 1_645_2287_21634.cpp:1:
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
^
1_645_2287_21634.cpp: In function 'void Spfa1()':
1_645_2287_21634.cpp:36:6: error: reference to 'next' is ambiguous
i=next[i];
^
1_645_2287_21634.cpp:7:50: note: candidates are: int next [2222222]
int head[558888],d1[558888],d2[558888],d[558888],next[2222222],point[2222222],w[2222222],Q[2222222];
^
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 1_645_2287_21634.cpp:1:
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
^
1_645_2287_21634.cpp: In function 'void Spfa2()':
1_645_2287_21634.cpp:63:6: error: reference to 'next' is ambiguous
i=next[i];
^
1_645_2287_21634.cpp:7:50: note: candidates are: int next [2222222]
int head[558888],d1[558888],d2[558888],d[558888],next[2222222],point[2222222],w[2222222],Q[2222222];
^
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 1_645_2287_21634.cpp:1:
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
^
1_645_2287_21634.cpp: In function 'int main()':
1_645_2287_21634.cpp:75:10: error: reference to 'next' is ambiguous
memset(next,0,sizeof(next));
^
1_645_2287_21634.cpp:7:50: note: candidates are: int next [2222222]
int head[558888],d1[558888],d2[558888],d[558888],next[2222222],point[2222222],w[2222222],Q[2222222];
^
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 1_645_2287_21634.cpp:1:
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
^
1_645_2287_21634.cpp:75:24: error: reference to 'next' is ambiguous
memset(next,0,sizeof(next));
^
1_645_2287_21634.cpp:7:50: note: candidates are: int next [2222222]
int head[558888],d1[558888],d2[558888],d[558888],next[2222222],point[2222222],w[2222222],Q[2222222];
^
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 1_645_2287_21634.cpp:1:
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
^
|