0_0_24948134_10090.cpp: In function 'void Update(int, int)':
0_0_24948134_10090.cpp:14: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_24948134_10090.cpp:9: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_24948134_10090.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_24948134_10090.cpp:14: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_24948134_10090.cpp:9: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_24948134_10090.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_24948134_10090.cpp: In function 'void Init()':
0_0_24948134_10090.cpp:18:13: error: reference to 'next' is ambiguous
memset(next,-1,sizeof(next));
^
0_0_24948134_10090.cpp:9: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_24948134_10090.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_24948134_10090.cpp:18:28: error: reference to 'next' is ambiguous
memset(next,-1,sizeof(next));
^
0_0_24948134_10090.cpp:9: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_24948134_10090.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_24948134_10090.cpp:18:33: error: 'memset' was not declared in this scope
memset(next,-1,sizeof(next));
^
0_0_24948134_10090.cpp: In function 'int Check()':
0_0_24948134_10090.cpp:29:29: error: 'memset' was not declared in this scope
memset(vis,0,sizeof(vis));
^
0_0_24948134_10090.cpp:37:11: error: reference to 'next' is ambiguous
if(next[u]==-1) continue;
^
0_0_24948134_10090.cpp:9: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_24948134_10090.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_24948134_10090.cpp:41:14: error: reference to 'next' is ambiguous
while(next[u]!=-1)
^
0_0_24948134_10090.cpp:9: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_24948134_10090.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_24948134_10090.cpp:43:15: error: reference to 'next' is ambiguous
v=edg[next[u]].v; next[u]=edg[next[u]].next;
^
0_0_24948134_10090.cpp:9: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_24948134_10090.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_24948134_10090.cpp:43:27: error: reference to 'next' is ambiguous
v=edg[next[u]].v; next[u]=edg[next[u]].next;
^
0_0_24948134_10090.cpp:9: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_24948134_10090.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_24948134_10090.cpp:43:39: error: reference to 'next' is ambiguous
v=edg[next[u]].v; next[u]=edg[next[u]].next;
^
0_0_24948134_10090.cpp:9: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:
|