/in/foo.cc: In function 'int main()':
/in/foo.cc:258:4: error: reference to 'end' is ambiguous
end=1;
^~~
/in/foo.cc:43:19: note: candidates are: long long int end
int n,m,T,s,d,r,t,end;
^~~
In file included from /usr/include/c++/6/set:63:0,
from /in/foo.cc:1:
/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_set.h:61:0,
from /usr/include/c++/6/set:61,
from /in/foo.cc:1:
/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:265:7: error: reference to 'end' is ambiguous
if (!end) printf("The game is going on\n");
^~~
/in/foo.cc:43:19: note: candidates are: long long int end
int n,m,T,s,d,r,t,end;
^~~
In file included from /usr/include/c++/6/set:63:0,
from /in/foo.cc:1:
/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_set.h:61:0,
from /usr/include/c++/6/set:61,
from /in/foo.cc:1:
/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: In function 'long long int Information_Tower::Attacked(long long int, long long int, long long int)':
/in/foo.cc:175:2: warning: control reaches end of non-void function [-Wreturn-type]
}
^