/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:10:2: error: reference to 'get' is ambiguous
  get=0;
  ^~~
/in/foo.cc:8:5: note: candidates are: int get
 int get;
     ^~~
In file included from /usr/include/c++/6/algorithm:60:0,
                 from /in/foo.cc:2:
/usr/include/c++/6/utility:212:5: note:                 template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr const typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(const std::pair<_Tp1, _Tp2>&)
     get(const std::pair<_Tp1, _Tp2>& __in) noexcept
     ^~~
/usr/include/c++/6/utility:207:5: note:                 template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type&& std::get(std::pair<_Tp1, _Tp2>&&)
     get(std::pair<_Tp1, _Tp2>&& __in) noexcept
     ^~~
/usr/include/c++/6/utility:202:5: note:                 template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(std::pair<_Tp1, _Tp2>&)
     get(std::pair<_Tp1, _Tp2>& __in) noexcept
     ^~~
/in/foo.cc:20:4: error: reference to 'get' is ambiguous
    get++;
    ^~~
/in/foo.cc:8:5: note: candidates are: int get
 int get;
     ^~~
In file included from /usr/include/c++/6/algorithm:60:0,
                 from /in/foo.cc:2:
/usr/include/c++/6/utility:212:5: note:                 template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr const typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(const std::pair<_Tp1, _Tp2>&)
     get(const std::pair<_Tp1, _Tp2>& __in) noexcept
     ^~~
/usr/include/c++/6/utility:207:5: note:                 template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type&& std::get(std::pair<_Tp1, _Tp2>&&)
     get(std::pair<_Tp1, _Tp2>&& __in) noexcept
     ^~~
/usr/include/c++/6/utility:202:5: note:                 template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(std::pair<_Tp1, _Tp2>&)
     get(std::pair<_Tp1, _Tp2>& __in) noexcept
     ^~~
/in/foo.cc:28:5: error: reference to 'get' is ambiguous
  if(get!=26){
     ^~~
/in/foo.cc:8:5: note: candidates are: int get
 int get;
     ^~~
In file included from /usr/include/c++/6/algorithm:60:0,
                 from /in/foo.cc:2:
/usr/include/c++/6/utility:212:5: note:                 template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr const typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(const std::pair<_Tp1, _Tp2>&)
     get(const std::pair<_Tp1, _Tp2>& __in) noexcept
     ^~~
/usr/include/c++/6/utility:207:5: note:                 template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type&& std::get(std::pair<_Tp1, _Tp2>&&)
     get(std::pair<_Tp1, _Tp2>&& __in) noexcept
     ^~~
/usr/include/c++/6/utility:202:5: note:                 template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(std::pair<_Tp1, _Tp2>&)
     get(std::pair<_Tp1, _Tp2>& __in) noexcept
     ^~~

信息

递交者
类型
递交
题目
P1752 潜伏者
语言
C++
递交时间
2018-08-21 20:38:17
评测时间
2018-08-21 20:38:17
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes