/in/foo.cc: In function 'int main()':
/in/foo.cc:10:16: error: reference to 'begin' is ambiguous
scanf("%d%d",&begin,&end);
^~~~~
/in/foo.cc:6:5: note: candidates are: int begin
int begin,end,t[100010];
^~~~~
In file included from /usr/include/c++/6/deque:65:0,
from /usr/include/c++/6/queue:60,
from /in/foo.cc:2:
/usr/include/c++/6/bits/range_access.h:87:5: note: template<class _Tp, long unsigned int _Nm> _Tp* std::begin(_Tp (&)[_Nm])
begin(_Tp (&__arr)[_Nm])
^~~~~
/usr/include/c++/6/bits/range_access.h:58:5: note: template<class _Container> decltype (__cont.begin()) std::begin(const _Container&)
begin(const _Container& __cont) -> decltype(__cont.begin())
^~~~~
/usr/include/c++/6/bits/range_access.h:48:5: note: template<class _Container> decltype (__cont.begin()) std::begin(_Container&)
begin(_Container& __cont) -> decltype(__cont.begin())
^~~~~
In file included from /usr/include/c++/6/bits/stl_deque.h:63:0,
from /usr/include/c++/6/deque:64,
from /usr/include/c++/6/queue:60,
from /in/foo.cc:2:
/usr/include/c++/6/initializer_list:89:5: note: template<class _Tp> constexpr const _Tp* std::begin(std::initializer_list<_Tp>)
begin(initializer_list<_Tp> __ils) noexcept
^~~~~
/in/foo.cc:10:23: error: reference to 'end' is ambiguous
scanf("%d%d",&begin,&end);
^~~
/in/foo.cc:6:11: note: candidates are: int end
int begin,end,t[100010];
^~~
In file included from /usr/include/c++/6/deque:65:0,
from /usr/include/c++/6/queue:60,
from /in/foo.cc:2:
/usr/include/c++/6/bits/range_access.h:97:5: note: template<class _Tp, long unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm])
end(_Tp (&__arr)[_Nm])
^~~
/usr/include/c++/6/bits/range_access.h:78:5: note: template<class _Container> decltype (__cont.end()) std::end(const _Container&)
end(const _Container& __cont) -> decltype(__cont.end())
^~~
/usr/include/c++/6/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 /usr/include/c++/6/bits/stl_deque.h:63:0,
from /usr/include/c++/6/deque:64,
from /usr/include/c++/6/queue:60,
from /in/foo.cc:2:
/usr/include/c++/6/initializer_list:99:5: note: template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)
end(initializer_list<_Tp> __ils) noexcept
^~~
/in/foo.cc:12:9: error: reference to 'begin' is ambiguous
q.push(begin);
^~~~~
/in/foo.cc:6:5: note: candidates are: int begin
int begin,end,t[100010];
^~~~~
In file included from /usr/include/c++/6/deque:65:0,
from /usr/include/c++/6/queue:60,
from /in/foo.cc:2:
/usr/include/c++/6/bits/range_access.h:87:5: note: template<class _Tp, long unsigned int _Nm> _Tp* std::begin(_Tp (&)[_Nm])
begin(_Tp (&__arr)[_Nm])
^~~~~
/usr/include/c++/6/bits/range_access.h:58:5: note: template<class _Container> decltype (__cont.begin()) std::begin(const _Container&)
begin(const _Container& __cont) -> decltype(__cont.begin())
^~~~~
/usr/include/c++/6/bits/range_access.h:48:5: note: template<class _Container> decltype (__cont.begin()) std::begin(_Container&)
begin(_Container& __cont) -> decltype(__cont.begin())
^~~~~
In file included from /usr/include/c++/6/bits/stl_deque.h:63:0,
from /usr/include/c++/6/deque:64,
from /usr/include/c++/6/queue:60,
from /in/foo.cc:2:
/usr/include/c++/6/initializer_list:89:5: note: template<class _Tp> constexpr const _Tp* std::begin(std::initializer_list<_Tp>)
begin(initializer_list<_Tp> __ils) noexcept
^~~~~
/in/foo.cc:13:4: error: reference to 'begin' is ambiguous
t[begin]=0;
^~~~~
/in/foo.cc:6:5: note: candidates are: int begin
int begin,end,t[100010];
^~~~~
In file included from /usr/include/c++/6/deque:65:0,
from /usr/include/c++/6/queue:60,
from /in/foo.cc:2:
/usr/include/c++/6/bits/range_access.h:87:5: note: template<class _Tp, long unsigned int _Nm> _Tp* std::begin(_Tp (&)[_Nm])
begin(_Tp (&__arr)[_Nm])
^~~~~
/usr/include/c++/6/bits/range_access.h:58:5: note: template<class _Container> decltype (__cont.begin()) std::begin(const _Container&)
begin(const _Container& __cont) -> decltype(__cont.begin())
^~~~~
/usr/include/c++/6/bits/range_access.h:48:5: note: template<class _Container> decltype (__cont.begin()) std::begin(_Container&)
begin(_Container& __cont) -> decltype(__cont.begin())
^~~~~
In file included from /usr/include/c++/6/bits/stl_deque.h:63:0,
from /usr/include/c++/6/deque:64,
from /usr/include/c++/6/queue:60,
from /in/foo.cc:2:
/usr/include/c++/6/initializer_list:89:5: note: template<class _Tp> constexpr const _Tp* std::begin(std::initializer_list<_Tp>)
begin(initializer_list<_Tp> __ils) noexcept
^~~~~
/in/foo.cc:17:9: error: reference to 'end' is ambiguous
if(u==end){
^~~
/in/foo.cc:6:11: note: candidates are: int end
int begin,end,t[100010];
^~~
In file included from /usr/include/c++/6/deque:65:0,
from /usr/include/c++/6/queue:60,
from /in/foo.cc:2:
/usr/include/c++/6/bits/range_access.h:97:5: note: template<class _Tp, long unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm])
end(_Tp (&__arr)[_Nm])
^~~
/usr/include/c++/6/bits/range_access.h:78:5: note: template<class _Container> decltype (__cont.end()) std::end(const _Container&)
end(const _Container& __cont) -> decltype(__cont.end())
^~~
/usr/include/c++/6/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 /usr/include/c++/6/bits/stl_deque.h:63:0,
from /usr/include/c++/6/deque:64,
from /usr/include/c++/6/queue:60,
from /in/foo.cc:2:
/usr/include/c++/6/initializer_list:99:5: note: template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)
end(initializer_list<_Tp> __ils) noexcept
^~~
/in/foo.cc:18:18: error: reference to 'end' is ambiguous
printf("%d",t[end]);
^~~
/in/foo.cc:6:11: note: candidates are: int end
int begin,end,t[100010];
^~~
In file included from /usr/include/c++/6/deque:65:0,
from /usr/include/c++/6/queue:60,
from /in/foo.cc:2:
/usr/include/c++/6/bits/range_access.h:97:5: note: template<class _Tp, long unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm])
end(_Tp (&__arr)[_Nm])
^~~
/usr/include/c++/6/bits/range_access.h:78:5: note: template<class _Container> decltype (__cont.end()) std::end(const _Container&)
end(const _Container& __cont) -> decltype(__cont.end())
^~~
/usr/include/c++/6/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 /usr/include/c++/6/bits/stl_deque.h:63:0,
from /usr/include/c++/6/deque:64,
from /usr/include/c++/6/queue:60,
from /in/foo.cc:2:
/usr/include/c++/6/initializer_list:99:5: note: template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)
end(initializer_list<_Tp> __ils) noexcept
^~~