/ new_bzoj /

记录详情

Compile Error

/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]
  }
  ^

信息

递交者
类型
递交
题目
杀蚂蚁antbuster
语言
C++
递交时间
2018-01-08 21:21:12
评测时间
2018-01-08 21:21:12
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes