foo.cpp: In function 'void add(int, int, int)':
foo.cpp:15:62: error: reference to 'end' is ambiguous
inline void add(int u,int v,int w){a[++cnt].go=v;a[cnt].next=end[u];a[cnt].s=w;end[u]=cnt;}
^
foo.cpp:13:62: note: candidates are: int end [50005]
int f[N][17],belong[N],can[N],use[N],minn[N],node[N],army[N],end[N];
^
In file included from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/string:51:0,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/random:40,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/stl_algo.h:66,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/algorithm:62,
from foo.cpp:2:
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/range_access.h:97:5: note: template<class _Tp, unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm])
end(_Tp (&__arr)[_Nm])
^
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/range_access.h:78:5: note: template<class _Container> decltype (__cont.end()) std::end(const _Container&)
end(const _Container& __cont) -> decltype(__cont.end())
^
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/range_access.h:68:5: note: template<class _Container> decltype (__cont.end()) std::end(_Container&)
end(_Container& __cont) -> decltype(__cont.end())
^
In file included from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/utility:75:0,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/algorithm:60,
from foo.cpp:2:
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/initializer_list:99:5: note: template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)
end(initializer_list<_Tp> __ils) noexcept
^
foo.cpp:15:80: error: reference to 'end' is ambiguous
inline void add(int u,int v,int w){a[++cnt].go=v;a[cnt].next=end[u];a[cnt].s=w;end[u]=cnt;}
^
foo.cpp:13:62: note: candidates are: int end [50005]
int f[N][17],belong[N],can[N],use[N],minn[N],node[N],army[N],end[N];
^
In file included from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/string:51:0,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/random:40,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/stl_algo.h:66,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/algorithm:62,
from foo.cpp:2:
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/range_access.h:97:5: note: template<class _Tp, unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm])
end(_Tp (&__arr)[_Nm])
^
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/range_access.h:78:5: note: template<class _Container> decltype (__cont.end()) std::end(const _Container&)
end(const _Container& __cont) -> decltype(__cont.end())
^
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/range_access.h:68:5: note: template<class _Container> decltype (__cont.end()) std::end(_Container&)
end(_Container& __cont) -> decltype(__cont.end())
^
In file included from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/utility:75:0,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/algorithm:60,
from foo.cpp:2:
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/initializer_list:99:5: note: template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)
end(initializer_list<_Tp> __ils) noexcept
^
foo.cpp: In function 'void dfs(int, int)':
foo.cpp:18:14: error: reference to 'end' is ambiguous
for (int i=end[k];i;i=a[i].next)
^
foo.cpp:13:62: note: candidates are: int end [50005]
int f[N][17],belong[N],can[N],use[N],