rings.cpp: In function 'void Init(int)':
rings.cpp:29:5: error: reference to 'size' is ambiguous
size[A]=1;
^~~~
rings.cpp:18:36: note: candidates are: int size [1000099]
int N,M,cnt,CycleSize,Quad,a,b,lol,size[MAX];
^~~~
In file included from /usr/include/c++/7/vector:66:0,
from rings.cpp:2:
/usr/include/c++/7/bits/range_access.h:252:5: note: template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])
size(const _Tp (&/*__array*/)[_Nm]) noexcept
^~~~
/usr/include/c++/7/bits/range_access.h:242:5: note: template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)
size(const _Container& __cont) noexcept(noexcept(__cont.size()))
^~~~
rings.cpp: In function 'void Link(int, int)':
rings.cpp:102:8: error: reference to 'size' is ambiguous
lol=size[a];
^~~~
rings.cpp:18:36: note: candidates are: int size [1000099]
int N,M,cnt,CycleSize,Quad,a,b,lol,size[MAX];
^~~~
In file included from /usr/include/c++/7/vector:66:0,
from rings.cpp:2:
/usr/include/c++/7/bits/range_access.h:252:5: note: template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])
size(const _Tp (&/*__array*/)[_Nm]) noexcept
^~~~
/usr/include/c++/7/bits/range_access.h:242:5: note: template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)
size(const _Container& __cont) noexcept(noexcept(__cont.size()))
^~~~
rings.cpp:103:4: error: reference to 'size' is ambiguous
size[a]=lol+size[b];
^~~~
rings.cpp:18:36: note: candidates are: int size [1000099]
int N,M,cnt,CycleSize,Quad,a,b,lol,size[MAX];
^~~~
In file included from /usr/include/c++/7/vector:66:0,
from rings.cpp:2:
/usr/include/c++/7/bits/range_access.h:252:5: note: template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])
size(const _Tp (&/*__array*/)[_Nm]) noexcept
^~~~
/usr/include/c++/7/bits/range_access.h:242:5: note: template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)
size(const _Container& __cont) noexcept(noexcept(__cont.size()))
^~~~
rings.cpp:103:16: error: reference to 'size' is ambiguous
size[a]=lol+size[b];
^~~~
rings.cpp:18:36: note: candidates are: int size [1000099]
int N,M,cnt,CycleSize,Quad,a,b,lol,size[MAX];
^~~~
In file included from /usr/include/c++/7/vector:66:0,
from rings.cpp:2:
/usr/include/c++/7/bits/range_access.h:252:5: note: template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])
size(const _Tp (&/*__array*/)[_Nm]) noexcept
^~~~
/usr/include/c++/7/bits/range_access.h:242:5: note: template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)
size(const _Container& __cont) noexcept(noexcept(__cont.size()))
^~~~
rings.cpp:104:4: error: reference to 'size' is ambiguous
size[b]=lol+size[b];
^~~~
rings.cpp:18:36: note: candidates are: int size [1000099]
int N,M,cnt,CycleSize,Quad,a,b,lol,size[MAX];
^~~~
In file included from /usr/include/c++/7/vector:66:0,
from rings.cpp:2:
/usr/include/c++/7/bits/range_access.h:252:5: note: template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])
size(const _Tp (&/*__array*/)[_Nm]) noexcept
^~~~
/usr/include/c++/7/bits/range_access.h:242:5: note: template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)
size(const _Container& __cont) noexcept(noexcept(__cont.size()))
^~~~
rings.cpp:104:16: error: reference to 'size' is ambiguous
size[b]=lol+size[b];
^~~~
rings.cpp:18:36: note: candidates are: int size [1000099]
int N,M,cnt,CycleSize,Quad,a,b,lol,size[MAX];
^~~~
In file included from /usr/include/c++/7/vector:66:0,
from rings.cpp:2:
/usr/include/c++/7/bits/range_access.h:252:5: note: template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])
size(const _Tp (&/*__array*/)[_Nm]) noexcept
^~~~
/usr/include/c++/7/bits/range_access.h:242:5: note: template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)
size(const _Container& __cont) noexcept(noexcept(__cont.size()))
^~~~
rings.cpp:115:14: error: reference to 'size' is ambiguous
CycleSize=size[Y];
^~~~
rings.cpp:18:36: note: candidates are: int size [1000099]
int N,M,cnt,CycleSize,Quad,a,b,lol,size[MAX];
^~~~
In file included from /usr/include/c++/7/vector:66:0,
from rings.cpp:2:
/usr/include/c++/7/bits/range_access.h:252:5: note: template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])
size(const _Tp (&/*__array*/)[_Nm]) noexcept
^~~~
/usr/include/c++/7/bits/range_access.h:242:5: note: template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)
size(const _Container& __cont) noexcept(noexcept(__cont.size()))
^~~~