robots.cpp: In function 'int main()':
robots.cpp:116:23: error: conflicting declaration 'std::queue<std::pair<int, int> > q'
116 | queue<pair<int,int> >q;
| ^
robots.cpp:72:33: note: previous declaration as 'std::queue<std::pair<std::pair<int, int>, int> > q'
72 | queue<pair<pair<int,int>,int> >q;
| ^
robots.cpp:122:15: error: no matching function for call to 'std::queue<std::pair<std::pair<int, int>, int> >::push(<brace-enclosed initializer list>)'
122 | q.push({x,y});
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from robots.cpp:1:
/usr/include/c++/9/bits/stl_queue.h:259:7: note: candidate: 'void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = std::pair<std::pair<int, int>, int>; _Sequence = std::deque<std::pair<std::pair<int, int>, int>, std::allocator<std::pair<std::pair<int, int>, int> > >; std::queue<_Tp, _Sequence>::value_type = std::pair<std::pair<int, int>, int>]'
259 | push(const value_type& __x)
| ^~~~
/usr/include/c++/9/bits/stl_queue.h:259:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type&' {aka 'const std::pair<std::pair<int, int>, int>&'}
259 | push(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/9/bits/stl_queue.h:264:7: note: candidate: 'void std::queue<_Tp, _Sequence>::push(std::queue<_Tp, _Sequence>::value_type&&) [with _Tp = std::pair<std::pair<int, int>, int>; _Sequence = std::deque<std::pair<std::pair<int, int>, int>, std::allocator<std::pair<std::pair<int, int>, int> > >; std::queue<_Tp, _Sequence>::value_type = std::pair<std::pair<int, int>, int>]'
264 | push(value_type&& __x)
| ^~~~
/usr/include/c++/9/bits/stl_queue.h:264:25: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::queue<std::pair<std::pair<int, int>, int> >::value_type&&' {aka 'std::pair<std::pair<int, int>, int>&&'}
264 | push(value_type&& __x)
| ~~~~~~~~~~~~~^~~
robots.cpp:126:21: error: no match for 'operator=' (operand types are 'std::tuple<int&, int&>' and '__gnu_cxx::__alloc_traits<std::allocator<std::pair<std::pair<int, int>, int> >, std::pair<std::pair<int, int>, int> >::value_type' {aka 'std::pair<std::pair<int, int>, int>'})
126 | tie(x,y)=q.front();
| ^
In file included from /usr/include/c++/9/functional:54,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:71,
from robots.cpp:1:
/usr/include/c++/9/tuple:1205:7: note: candidate: 'std::tuple<_T1, _T2>& std::tuple<_T1, _T2>::operator=(typename std::conditional<__assignable<const _T1&, const _T2&>(), const std::tuple<_T1, _T2>&, const std::__nonesuch_no_braces&>::type) [with _T1 = int&; _T2 = int&; typename std::conditional<__assignable<const _T1&, const _T2&>(), const std::tuple<_T1, _T2>&, const std::__nonesuch_no_braces&>::type = const std::tuple<int&, int&>&]'
1205 | operator=(typename conditional<__assignable<const _T1&, const _T2&>(),
| ^~~~~~~~
/usr/include/c++/9/tuple:1207:45: note: no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<std::pair<std::pair<int, int>, int> >, std::pair<std::pair<int, int>, int> >::value_type' {aka 'std::pair<std::pair<int, int>, int>'} to 'std::conditional<true, const std::tuple<int&, int&>&, const std::__nonesuch_no_braces&>::type' {aka 'const std::tuple<int&, int&>&'}
1205 | operator=(typename conditional<__assignable<const _T1&, const _T2&>(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1206 | const tuple&,
| ~~~~~~~~~~~~~
1207 | const __nonesuch_no_braces&>::type __in)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
/usr/include/c++/9/tuple:1215:7: note: candidate: 'std::tuple<_T1, _T2>& std::tuple<_T1, _T2>::operator=(typename std::conditional<__assignable<_T1, _T2>(), std::tuple<_T1, _T2>&&, std::__nonesuch_no_braces&&>::type) [with _T1 = int&; _T2 = int&; typename std::conditional<__assignable<_T1, _T2>(), std::tuple<_T1, _T2>&&, std::__nonesuch_no_braces&&>::type = std::tuple<int&, int&>&&]'
1215 | operator=(typename conditional<__assignable<_T1, _T2>(),
| ^~~~~~~~
/usr/include/c++/9/tuple:1217:40: note: no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<std::pair<std::pair<int, int>, int> >, std::pair<std::pair<int, int>, int> >::value_type' {aka 'std::pair<std::pair<int, int>, int>'} to 'std::conditional<true, std::tuple<int&, int&>&&, std::__nonesuch_no_braces&&>::type' {aka 'std::tuple<int&, int&>&&'}
1215 | operator=(typename conditional<__assignable<_T1, _T2>(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1216 | tuple&&,
| ~~~~~~~~
1217 | __nonesuch_no_braces&&>::type __in)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
/usr/include/c++/9/tuple:1226:2: note: candidate: 'template<class _U1, class _U2> std::__enable_if_t<__assignable<const _U1&, const _U2&>(), std::tuple<_T1, _T2>&> std::tuple<_T1, _T2>::operator=(const std::tuple<_U1, _U2>&) [with _U1 = _U1; _U2 = _U2; _T1 = int&; _T2 = int&]'
1226 | operator=(const tuple<_U1, _U2>& __in)
| ^~~~~~~~
/usr/include/c++/9/tuple:1226:2: note: template argument deduction/substitution failed:
robots.cpp:126:21: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<std::pair<int, int>, int> >, std::pair<std::pair<int, int>, int> >::value_type' {aka 'std::pair<std::pair<int, int>, int>'} is not derived from 'const std::tuple<_T1, _T2>'
126 | tie(x,y)=q.front();
| ^
In file included from /usr/include/c++/9/functional:54,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:71,
from robots.cpp:1:
/usr/include/c++/9/tuple:1235:2: note: candidate: 'template<class _U1, class _U2> std::__enable_if_t<__assignable<_U1, _U2>(), std::tuple<_T1, _T2>&> std::tuple<_T1, _T2>::operator=(std::tuple<_U1, _U2>&&) [with _U1 = _U1; _U2 = _U2; _T1 = int&; _T2 = int&]'
1235 | operator=(tuple<_U1, _U2>&& __in)
| ^~~~~~~~
/usr/include/c++/9/tuple:1235:2: note: template argument deduction/substitution failed:
robots.cpp:126:21: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<std::pair<int, int>, int> >, std::pair<std::pair<int, int>, int> >::value_type' {aka 'std::pair<std::pair<int, int>, int>'} is not derived from 'std::tuple<_T1, _T2>'
126 | tie(x,y)=q.front();
| ^
In file included from /usr/include/c++/9/functional:54,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:71,
from robots.cpp:1:
/usr/include/c++/9/tuple:1244:2: note: candidate: 'template<class _U1, class _U2> std::__enable_if_t<__assignable<const _U1&, const _U2&>(), std::tuple<_T1, _T2>&> std::tuple<_T1, _T2>::operator=(const std::pair<_U1, _U2>&) [with _U1 = _U1; _U2 = _U2; _T1 = int&; _T2 = int&]'
1244 | operator=(const pair<_U1, _U2>& __in)
| ^~~~~~~~
/usr/include/c++/9/tuple:1244:2: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/bits/move.h:55,
from /usr/include/c++/9/bits/nested_exception.h:40,
from /usr/include/c++/9/exception:144,
from /usr/include/c++/9/ios:39,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from robots.cpp:1:
/usr/include/c++/9/type_traits: In substitution of 'template<bool _Cond, class _Tp> using __enable_if_t = typename std::enable_if::type [with bool _Cond = std::tuple<int&, int&>::__assignable<const std::pair<int, int>&, const int&>(); _Tp = std::tuple<int&, int&>&]':
/usr/include/c++/9/tuple:1244:2: required by substitution of 'template<class _U1, class _U2> std::__enable_if_t<__assignable<const _U1&, const _U2&>(), std::tuple<int&, int&>&> std::tuple<int&, int&>::operator=<_U1, _U2>(const std::pair<_T1, _T2>&) [with _U1 = std::pair<int, int>; _U2 = int]'
robots.cpp:126:21: required from here
/usr/include/c++/9/type_traits:2405:11: error: no type named 'type' in 'struct std::enable_if<false, std::tuple<int&, int&>&>'
2405 | using __enable_if_t = typename enable_if<_Cond, _Tp>::type;
| ^~~~~~~~~~~~~
In file included from /usr/include/c++/9/functional:54,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:71,
from robots.cpp:1:
/usr/include/c++/9/tuple:1254:2: note: candidate: 'template<class _U1, class _U2> std::__enable_if_t<__assignable<_U1, _U2>(), std::tuple<_T1, _T2>&> std::tuple<_T1, _T2>::operator=(std::pair<_U1, _U2>&&) [with _U1 = _U1; _U2 = _U2; _T1 = int&; _T2 = int&]'
1254 | operator=(pair<_U1, _U2>&& __in)
| ^~~~~~~~
/usr/include/c++/9/tuple:1254:2: note: template argument deduction/substitution failed:
robots.cpp:133:15: error: no matching function for call to 'std::queue<std::pair<std::pair<int, int>, int> >::push(std::pair<int, int>&)'
133 | q.push(xd);
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from robots.cpp:1:
/usr/include/c++/9/bits/stl_queue.h:259:7: note: candidate: 'void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = std::pair<std::pair<int, int>, int>; _Sequence = std::deque<std::pair<std::pair<int, int>, int>, std::allocator<std::pair<std::pair<int, int>, int> > >; std::queue<_Tp, _Sequence>::value_type = std::pair<std::pair<int, int>, int>]'
259 | push(const value_type& __x)
| ^~~~
/usr/include/c++/9/bits/stl_queue.h:259:30: note: no known conversion for argument 1 from 'std::pair<int, int>' to 'const value_type&' {aka 'const std::pair<std::pair<int, int>, int>&'}
259 | push(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/9/bits/stl_queue.h:264:7: note: candidate: 'void std::queue<_Tp, _Sequence>::push(std::queue<_Tp, _Sequence>::value_type&&) [with _Tp = std::pair<std::pair<int, int>, int>; _Sequence = std::deque<std::pair<std::pair<int, int>, int>, std::allocator<std::pair<std::pair<int, int>, int> > >; std::queue<_Tp, _Sequence>::value_type = std::pair<std::pair<int, int>, int>]'
264 | push(value_type&& __x)
| ^~~~
/usr/include/c++/9/bits/stl_queue.h:264:25: note: no known conversion for argument 1 from 'std::pair<int, int>' to 'std::queue<std::pair<std::pair<int, int>, int> >::value_type&&' {aka 'std::pair<std::pair<int, int>, int>&&'}
264 | push(value_type&& __x)
| ~~~~~~~~~~~~~^~~