0_0_24948129_10349.cpp: In function 'void Update(int, int)':
0_0_24948129_10349.cpp:11:46: error: reference to 'next' is ambiguous
edg[tot].u=u;edg[tot].v=v;edg[tot].next=next[u];next[u]=tot++;
^
0_0_24948129_10349.cpp:6:21: note: candidates are: int next [20001]
Node edg[50001];int next[20001],tot=0; //tot edgs
^
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_24948129_10349.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
^
0_0_24948129_10349.cpp:11:54: error: reference to 'next' is ambiguous
edg[tot].u=u;edg[tot].v=v;edg[tot].next=next[u];next[u]=tot++;
^
0_0_24948129_10349.cpp:6:21: note: candidates are: int next [20001]
Node edg[50001];int next[20001],tot=0; //tot edgs
^
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_24948129_10349.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
^
0_0_24948129_10349.cpp: In function 'void Init()':
0_0_24948129_10349.cpp:15:13: error: reference to 'next' is ambiguous
memset(next,-1,sizeof(next));
^
0_0_24948129_10349.cpp:6:21: note: candidates are: int next [20001]
Node edg[50001];int next[20001],tot=0; //tot edgs
^
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_24948129_10349.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
^
0_0_24948129_10349.cpp:15:28: error: reference to 'next' is ambiguous
memset(next,-1,sizeof(next));
^
0_0_24948129_10349.cpp:6:21: note: candidates are: int next [20001]
Node edg[50001];int next[20001],tot=0; //tot edgs
^
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_24948129_10349.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
^
0_0_24948129_10349.cpp:15:33: error: 'memset' was not declared in this scope
memset(next,-1,sizeof(next));
^
0_0_24948129_10349.cpp: In function 'int Check()':
0_0_24948129_10349.cpp:26:29: error: 'memset' was not declared in this scope
memset(vis,0,sizeof(vis));
^
0_0_24948129_10349.cpp:34:11: error: reference to 'next' is ambiguous
if(next[u]==-1) continue;
^
0_0_24948129_10349.cpp:6:21: note: candidates are: int next [20001]
Node edg[50001];int next[20001],tot=0; //tot edgs
^
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_24948129_10349.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
^
0_0_24948129_10349.cpp:38:14: error: reference to 'next' is ambiguous
while(next[u]!=-1)
^
0_0_24948129_10349.cpp:6:21: note: candidates are: int next [20001]
Node edg[50001];int next[20001],tot=0; //tot edgs
^
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_24948129_10349.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
^
0_0_24948129_10349.cpp:40:15: error: reference to 'next' is ambiguous
v=edg[next[u]].v; next[u]=edg[next[u]].next;
^
0_0_24948129_10349.cpp:6:21: note: candidates are: int next [20001]
Node edg[50001];int next[20001],tot=0; //tot edgs
^
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_24948129_10349.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
^
0_0_24948129_10349.cpp:40:27: error: reference to 'next' is ambiguous
v=edg[next[u]].v; next[u]=edg[next[u]].next;
^
0_0_24948129_10349.cpp:6:21: note: candidates are: int next [20001]
Node edg[50001];int next[20001],tot=0; //tot edgs
^
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_24948129_10349.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
^
0_0_24948129_10349.cpp:40:39: error: reference to 'next' is ambiguous
v=edg[next[u]].v; next[u]=edg[next[u]].next;
^
0_0_24948129_10349.cpp:6:21: note: candidates are: int next [20001]
Node edg[50001];int next[20001],tot=0; //tot edgs
^
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:
|