ballmachine.cpp: In function 'void build(int)':
ballmachine.cpp:44:5: error: reference to 'empty' is ambiguous
44 | empty.emplace(cur, u);
| ^~~~~
In file included from /usr/include/c++/10/string:54,
from /usr/include/c++/10/bits/locale_classes.h:40,
from /usr/include/c++/10/bits/ios_base.h:41,
from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from ballmachine.cpp:1:
/usr/include/c++/10/bits/range_access.h:281:5: note: candidates are: 'template<class _Tp> constexpr bool std::empty(std::initializer_list<_Tp>)'
281 | empty(initializer_list<_Tp> __il) noexcept
| ^~~~~
/usr/include/c++/10/bits/range_access.h:272:5: note: 'template<class _Tp, long unsigned int _Nm> constexpr bool std::empty(const _Tp (&)[_Nm])'
272 | empty(const _Tp (&)[_Nm]) noexcept
| ^~~~~
/usr/include/c++/10/bits/range_access.h:263:5: note: 'template<class _Container> constexpr decltype (__cont.empty()) std::empty(const _Container&)'
263 | empty(const _Container& __cont) noexcept(noexcept(__cont.empty()))
| ^~~~~
ballmachine.cpp:27:15: note: 'std::map<int, int> empty'
27 | map<int, int> empty;
| ^~~~~
ballmachine.cpp: In function 'int main()':
ballmachine.cpp:74:23: error: reference to 'empty' is ambiguous
74 | ans = empty.begin()->second;
| ^~~~~
In file included from /usr/include/c++/10/string:54,
from /usr/include/c++/10/bits/locale_classes.h:40,
from /usr/include/c++/10/bits/ios_base.h:41,
from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from ballmachine.cpp:1:
/usr/include/c++/10/bits/range_access.h:281:5: note: candidates are: 'template<class _Tp> constexpr bool std::empty(std::initializer_list<_Tp>)'
281 | empty(initializer_list<_Tp> __il) noexcept
| ^~~~~
/usr/include/c++/10/bits/range_access.h:272:5: note: 'template<class _Tp, long unsigned int _Nm> constexpr bool std::empty(const _Tp (&)[_Nm])'
272 | empty(const _Tp (&)[_Nm]) noexcept
| ^~~~~
/usr/include/c++/10/bits/range_access.h:263:5: note: 'template<class _Container> constexpr decltype (__cont.empty()) std::empty(const _Container&)'
263 | empty(const _Container& __cont) noexcept(noexcept(__cont.empty()))
| ^~~~~
ballmachine.cpp:27:15: note: 'std::map<int, int> empty'
27 | map<int, int> empty;
| ^~~~~
ballmachine.cpp:75:17: error: reference to 'empty' is ambiguous
75 | empty.erase(empty.begin());
| ^~~~~
In file included from /usr/include/c++/10/string:54,
from /usr/include/c++/10/bits/locale_classes.h:40,
from /usr/include/c++/10/bits/ios_base.h:41,
from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from ballmachine.cpp:1:
/usr/include/c++/10/bits/range_access.h:281:5: note: candidates are: 'template<class _Tp> constexpr bool std::empty(std::initializer_list<_Tp>)'
281 | empty(initializer_list<_Tp> __il) noexcept
| ^~~~~
/usr/include/c++/10/bits/range_access.h:272:5: note: 'template<class _Tp, long unsigned int _Nm> constexpr bool std::empty(const _Tp (&)[_Nm])'
272 | empty(const _Tp (&)[_Nm]) noexcept
| ^~~~~
/usr/include/c++/10/bits/range_access.h:263:5: note: 'template<class _Container> constexpr decltype (__cont.empty()) std::empty(const _Container&)'
263 | empty(const _Container& __cont) noexcept(noexcept(__cont.empty()))
| ^~~~~
ballmachine.cpp:27:15: note: 'std::map<int, int> empty'
27 | map<int, int> empty;
| ^~~~~
ballmachine.cpp:75:29: error: reference to 'empty' is ambiguous
75 | empty.erase(empty.begin());
| ^~~~~
In file included from /usr/include/c++/10/string:54,
from /usr/include/c++/10/bits/locale_classes.h:40,
from /usr/include/c++/10/bits/ios_base.h:41,
from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from ballmachine.cpp:1:
/usr/include/c++/10/bits/range_access.h:281:5: note: candidates are: 'template<class _Tp> constexpr bool std::empty(std::initializer_list<_Tp>)'
281 | empty(initializer_list<_Tp> __il) noexcept
| ^~~~~
/usr/include/c++/10/bits/range_access.h:272:5: note: 'template<class _Tp, long unsigned int _Nm> constexpr bool std::empty(const _Tp (&)[_Nm])'
272 | empty(const _Tp (&)[_Nm]) noexcept
| ^~~~~
/usr/include/c++/10/bits/range_access.h:263:5: note: 'template<class _Container> constexpr decltype (__cont.empty()) std::empty(const _Container&)'
263 | empty(const _Container& __cont) noexcept(noexcept(__cont.empty()))
| ^~~~~
ballmachine.cpp:27:15: note: 'std::map<int, int> empty'
27 | map<int, int> empty;
| ^~~~~
ballmachine.cpp:81:32: error: reference to 'empty' is ambiguous
81 | per(j, 0, 17) if (!empty.count(pos[jmp[j][u]])) {
| ^~~~~
In file included from /usr/include/c++/10/string:54,
from /usr/include/c++/10/bits/locale_classes.h:40,
from /usr/include/c++/10/bits/ios_base.h:41,
from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from ballmachine.cpp:1:
/usr/include/c++/10/bits/range_access.h:281:5: note: candidates are: 'template<class _Tp> constexpr bool std::empty(std::initializer_list<_Tp>)'
281 | empty(initializer_list<_Tp> __il) noexcept
| ^~~~~
/usr/include/c++/10/bits/range_access.h:272:5: note: 'template<class _Tp, long unsigned int _Nm> constexpr bool std::empty(const _Tp (&)[_Nm])'
272 | empty(const _Tp (&)[_Nm]) noexcept
| ^~~~~
/usr/include/c++/10/bits/range_access.h:263:5: note: 'template<class _Container> constexpr decltype (__cont.empty()) std::empty(const _Container&)'
263 | empty(const _Container& __cont) noexcept(noexcept(__cont.empty()))
| ^~~~~
ballmachine.cpp:27:15: note: 'std::map<int, int> empty'
27 | map<int, int> empty;
| ^~~~~
ballmachine.cpp:86:13: error: reference to 'empty' is ambiguous
86 | empty.emplace(pos[u],u);
| ^~~~~
In file included from /usr/include/c++/10/string:54,
from /usr/include/c++/10/bits/locale_classes.h:40,
from /usr/include/c++/10/bits/ios_base.h:41,
from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from ballmachine.cpp:1:
/usr/include/c++/10/bits/range_access.h:281:5: note: candidates are: 'template<class _Tp> constexpr bool std::empty(std::initializer_list<_Tp>)'
281 | empty(initializer_list<_Tp> __il) noexcept
| ^~~~~
/usr/include/c++/10/bits/range_access.h:272:5: note: 'template<class _Tp, long unsigned int _Nm> constexpr bool std::empty(const _Tp (&)[_Nm])'
272 | empty(const _Tp (&)[_Nm]) noexcept
| ^~~~~
/usr/include/c++/10/bits/range_access.h:263:5: note: 'template<class _Container> constexpr decltype (__cont.empty()) std::empty(const _Container&)'
263 | empty(const _Container& __cont) noexcept(noexcept(__cont.empty()))
| ^~~~~
ballmachine.cpp:27:15: note: 'std::map<int, int> empty'
27 | map<int, int> empty;
| ^~~~~