/ 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++/4.8.2/functional:55:0,
                 from /usr/include/c++/4.8.2/bits/stl_algo.h:66,
                 from /usr/include/c++/4.8.2/algorithm:62,
                 from /in/foo.cc:4:
/usr/include/c++/4.8.2/tuple:773:5: note:                 template<long unsigned int __i, class ... _Elements> constexpr typename std::__add_r_ref<typename std::tuple_element<__i, std::tuple<_Elements ...> >::type>::type std::get(std::tuple<_Elements ...>&&)
     get(tuple<_Elements...>&& __t) noexcept
     ^

信息

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