/in/foo.cc: In function 'void spfa(int)':
/in/foo.cc:48:38: error: reference to 'end' is ambiguous
48 | for (int i = 1; i <= end; i++) {
| ^~~
In file included from /usr/include/c++/12/string:52,
from /usr/include/c++/12/bits/locale_classes.h:40,
from /usr/include/c++/12/bits/ios_base.h:41,
from /usr/include/c++/12/ios:42,
from /usr/include/c++/12/istream:38,
from /usr/include/c++/12/fstream:38,
from /in/foo.cc:1:
/usr/include/c++/12/bits/range_access.h:106:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm])'
106 | end(_Tp (&__arr)[_Nm]) noexcept
| ^~~
/usr/include/c++/12/bits/range_access.h:85:5: note: 'template<class _Container> decltype (__cont.end()) std::end(const _Container&)'
85 | end(const _Container& __cont) -> decltype(__cont.end())
| ^~~
/usr/include/c++/12/bits/range_access.h:74:5: note: 'template<class _Container> decltype (__cont.end()) std::end(_Container&)'
74 | end(_Container& __cont) -> decltype(__cont.end())
| ^~~
In file included from /usr/include/c++/12/bits/range_access.h:36:
/usr/include/c++/12/initializer_list:101:5: note: 'template<class _Tp> constexpr const _Tp* std::end(initializer_list<_Tp>)'
101 | end(initializer_list<_Tp> __ils) noexcept
| ^~~
/in/foo.cc:17:14: note: 'int end'
17 | int n, m, k, end, acc[3000], AG[20] = { 0 };
| ^~~
/in/foo.cc:52:17: error: no match for call to '(std::bitset<20>) (int&)'
52 | tmp1(chg);
| ~~~~^~~~~
/in/foo.cc:63:42: warning: comparison of integer expressions of different signedness: 'std::size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
63 | if (tmp1.count() <= m-1) {
| ~~~~~~~~~~~~~^~~~~~
/in/foo.cc:51:42: warning: unused variable 'cnt' [-Wunused-variable]
51 | int chg = t ^ i, cnt = 0, f = 1, temp = i;
| ^~~
/in/foo.cc:51:51: warning: unused variable 'f' [-Wunused-variable]
51 | int chg = t ^ i, cnt = 0, f = 1, temp = i;
| ^
/in/foo.cc:51:58: warning: unused variable 'temp' [-Wunused-variable]
51 | int chg = t ^ i, cnt = 0, f = 1, temp = i;
| ^~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:85:9: error: reference to 'end' is ambiguous
85 | end = (1 << (n + 1)) - 1;
| ^~~
/usr/include/c++/12/bits/range_access.h:106:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm])'
106 | end(_Tp (&__arr)[_Nm]) noexcept
| ^~~
/usr/include/c++/12/bits/range_access.h:85:5: note: 'template<class _Container> decltype (__cont.end()) std::end(const _Container&)'
85 | end(const _Container& __cont) -> decltype(__cont.end())
| ^~~
/usr/include/c++/12/bits/range_access.h:74:5: note: 'template<class _Container> decltype (__cont.end()) std::end(_Container&)'
74 | end(_Container& __cont) -> decltype(__cont.end())
| ^~~
/usr/include/c++/12/initializer_list:101:5: note: 'template<class _Tp> constexpr const _Tp* std::end(initializer_list<_Tp>)'
101 | end(initializer_list<_Tp> __ils) noexcept
| ^~~
/in/foo.cc:17:14: note: 'int end'
17 | int n, m, k, end, acc[3000], AG[20] = { 0 };
| ^~~
/in/foo.cc:86:30: error: reference to 'end' is ambiguous
86 | for (int i = 1; i <= end; i++) {
| ^~~
/usr/include/c++/12/bits/range_access.h:106:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm])'
106 | end(_Tp (&__arr)[_Nm]) noexcept
| ^~~
/usr/include/c++/12/bits/range_access.h:85:5: note: 'template<class _Container> decltype (__cont.end()) std::end(const _Container&)'
85 | end(const _Container& __cont) -> decltype(__cont.end())
| ^~~
/usr/include/c++/12/bits/range_access.h:74:5: note: 'template<class _Container> decltype (__cont.end()) std::end(_Container&)'
74 | end(_Container& __cont) -> decltype(__cont.end())
| ^~~
/usr/include/c++/12/initializer_list:101:5: note: 'template<class _Tp> constexpr const _Tp* std::end(initializer_list<_Tp>)'
101 | end(initializer_list<_Tp> __ils) noexcept
| ^~~
/in/foo.cc:17:14: note: 'int end'
17 | int n, m, k, end, acc[3000], AG[20] = { 0 };
| ^~~
/in/foo.cc:101:18: error: reference to 'end' is ambiguous
101 | if (dist[end] == INF)
| ^~~
/usr/include/c++/12/bits/range_access.h:106:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm])'
106 | end(_Tp (&__arr)[_Nm]) noexcept
| ^~~
/usr/include/c++/12/bits/range_access.h:85:5: note: 'template<class _Container> decltype (__cont.end()) std::end(const _Container&)'
85 | end(const _Container& __cont) -> decltype(__cont.end())
| ^~~
/usr/include/c++/12/bits/range_access.h:74:5: note: 'template<class _Container> decltype (__cont.end()) std::end(_Container&)'
74 | end(_Container& __cont) -> decltype(__cont.end())
| ^~~
/usr/include/c++/12/initializer_list:101:5: note: 'template<class _Tp> constexpr const _Tp* std::end(initializer_list<_Tp>)'
101 | end(initializer_list<_Tp> __ils) noexcept
| ^~~
/in/foo.cc:17:14: note: 'int end'
17 | int n, m, k, end, acc[3000], AG[20] = { 0 };
| ^~~
/in/foo.cc:104:35: error: reference to 'end' is ambiguous
104 | printf("%d", dist[end]);
| ^~~
/usr/include/c++/12/bits/range_access.h:106:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm])'
106 | end(_Tp (&__arr)[_Nm]) noexcept
| ^~~
/usr/include/c++/12/bits/range_access.h:85:5: note: 'template<class _Container> decltype (__cont.end()) std::end(const _Container&)'
85 | end(const _Container& __cont) -> decltype(__cont.end())
| ^~~
/usr/include/c++/12/bits/range_access.h:74:5: note: 'template<class _Container> decltype (__cont.end()) std::end(_Container&)'
74 | end(_Container& __cont) -> decltype(__cont.end())
| ^~~
/usr/include/c++/12/initializer_list:101:5: note: 'template<class _Tp> constexpr const _Tp* std::end(initializer_list<_Tp>)'
101 | end(initializer_list<_Tp> __ils) noexcept
| ^~~
/in/foo.cc:17:14: note: 'int end'
17 | int n, m, k, end, acc[3000], AG[20] = { 0 };
| ^~~