/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'void p()':
/in/foo.cc:40:20: error: reference to 'get' is ambiguous
   if (judge(f[i])) get+=f[i];
                    ^
/in/foo.cc:16:11: note: candidates are: ULL get
 ULL all=0,get=0;
           ^
In file included from /usr/include/c++/5/algorithm:60:0,
                 from /in/foo.cc:4:
/usr/include/c++/5/utility:157: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++/5/utility:152: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++/5/utility:147: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
     ^

信息

递交者
类型
自测
题目
P1104 采药
语言
C++
递交时间
2017-03-26 18:41:50
评测时间
2017-03-26 18:41:50
评测机
分数
0
总耗时
543ms
峰值内存
142.867 MiB