QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#408625 | #6748. Spin the Wheel | HuangHanSheng | Compile Error | / | / | C++20 | 1.0kb | 2024-05-10 20:28:11 | 2024-05-10 20:28:12 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In function ‘void solve()’: answer.code:23:16: error: no matching function for call to ‘min_element(std::vector<int>::iterator, <unresolved overloaded function type>)’ 23 | if(*min_element(tar.begin(),tar.end)>0) | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/algorithm:61, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:51, from answer.code:1: /usr/include/c++/13/bits/stl_algo.h:5666:12: note: candidate: ‘constexpr _FIter std::min_element(_FIter, _FIter) [with _FIter = __gnu_cxx::__normal_iterator<int*, vector<int> >]’ 5666 | inline min_element(_ForwardIterator __first, _ForwardIterator __last) | ^~~~~~~~~~~ /usr/include/c++/13/bits/stl_algo.h:5666:67: note: no known conversion for argument 2 from ‘<unresolved overloaded function type>’ to ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’ 5666 | inline min_element(_ForwardIterator __first, _ForwardIterator __last) | ~~~~~~~~~~~~~~~~~^~~~~~ /usr/include/c++/13/bits/stl_algo.h:5691:5: note: candidate: ‘template<class _FIter, class _Compare> constexpr _FIter std::min_element(_FIter, _FIter, _Compare)’ 5691 | min_element(_ForwardIterator __first, _ForwardIterator __last, | ^~~~~~~~~~~ /usr/include/c++/13/bits/stl_algo.h:5691:5: note: template argument deduction/substitution failed: answer.code:23:16: note: candidate expects 3 arguments, 2 provided 23 | if(*min_element(tar.begin(),tar.end)>0) | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/algorithm:73: /usr/include/c++/13/pstl/glue_algorithm_defs.h:516:1: note: candidate: ‘template<class _ExecutionPolicy, class _ForwardIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> std::min_element(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator, _Compare)’ 516 | min_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); | ^~~~~~~~~~~ /usr/include/c++/13/pstl/glue_algorithm_defs.h:516:1: note: template argument deduction/substitution failed: answer.code:23:16: note: candidate expects 4 arguments, 2 provided 23 | if(*min_element(tar.begin(),tar.end)>0) | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/pstl/glue_algorithm_defs.h:520:1: note: candidate: ‘template<class _ExecutionPolicy, class _ForwardIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> std::min_element(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator)’ 520 | min_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); | ^~~~~~~~~~~ /usr/include/c++/13/pstl/glue_algorithm_defs.h:520:1: note: template argument deduction/substitution failed: answer.code:23:16: note: candidate expects 3 arguments, 2 provided 23 | if(*min_element(tar.begin(),tar.end)>0) | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~