QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#878562#8589. ExplosivesHuangHanShengCompile Error//C++201.4kb2025-02-01 16:02:112025-02-01 16:02:11

详细

answer.code: In function ‘int main()’:
answer.code:65:14: error: no match for ‘operator<’ (operand types are ‘std::basic_ostream<char>::__ostream_type’ {aka ‘std::basic_ostream<char>’} and ‘<unresolved overloaded function type>’)
   65 |     cout<<ans<endl;
      |     ~~~~~~~~~^~~~~
In file included from /usr/include/c++/14/regex:68,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
                 from answer.code:1:
/usr/include/c++/14/bits/regex.h:1288:5: note: candidate: ‘template<class _Bi_iter, class _Ch_traits, class _Alloc> auto std::__cxx11::operator<=>(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)’ (reversed)
 1288 |     operator<=>(const sub_match<_Bi_iter>& __lhs,
      |     ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1288:5: note:   template argument deduction/substitution failed:
answer.code:65:15: note:   ‘std::basic_ostream<char>::__ostream_type’ {aka ‘std::basic_ostream<char>’} is not derived from ‘std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>’
   65 |     cout<<ans<endl;
      |               ^~~~
/usr/include/c++/14/bits/regex.h:1456:5: note: candidate: ‘template<class _Bi_iter> auto std::__cxx11::operator<=>(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)’ (reversed)
 1456 |     operator<=>(const sub_match<_Bi_iter>& __lhs,
      |     ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1456:5: note:   template argument deduction/substitution failed:
answer.code:65:15: note:   couldn’t deduce template parameter ‘_Bi_iter’
   65 |     cout<<ans<endl;
      |               ^~~~
/usr/include/c++/14/bits/regex.h:1629:5: note: candidate: ‘template<class _Bi_iter> auto std::__cxx11::operator<=>(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)’ (reversed)
 1629 |     operator<=>(const sub_match<_Bi_iter>& __lhs,
      |     ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1629:5: note:   template argument deduction/substitution failed:
answer.code:65:15: note:   couldn’t deduce template parameter ‘_Bi_iter’
   65 |     cout<<ans<endl;
      |               ^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
                 from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_pair.h:1023:5: note: candidate: ‘template<class _T1, class _T2, class _U1, class _U2> constexpr std::common_comparison_category_t<decltype (std::__detail::__synth3way(declval<_T1&>(), declval<_U1&>())), decltype (std::__detail::__synth3way(declval<_T2&>(), declval<_U2&>()))> std::operator<=>(const pair<_T1, _T2>&, const pair<_U1, _U2>&)’ (reversed)
 1023 |     operator<=>(const pair<_T1, _T2>& __x, const pair<_U1, _U2>& __y)
      |     ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1023:5: note:   template argument deduction/substitution failed:
answer.code:65:15: note:   ‘std::basic_ostream<char>::__ostream_type’ {aka ‘std::basic_ostream<char>’} is not derived from ‘const std::pair<_U1, _U2>’
   65 |     cout<<ans<endl;
      |               ^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:576:5: note: candidate: ‘template<class _IteratorL, class _IteratorR>  requires  three_way_comparable_with<_IteratorR, _IteratorL, std::partial_ordering> constexpr std::compare_three_way_result_t<_IteratorL, _IteratorR> std::operator<=>(const reverse_iterator<_IteratorL>&, const reverse_iterator<_IteratorR>&)’ (reversed)
  576 |     operator<=>(const reverse_iterator<_IteratorL>& __x,
      |     ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:576:5: note:   template argument deduction/substitution failed:
answer.code:65:15: note:   ‘std::basic_ostream<char>::__ostream_type’ {aka ‘std::basic_ostream<char>’} is not derived from ‘const std::reverse_iterator<_IteratorR>’
   65 |     cout<<ans<endl;
      |               ^~~~
/usr/include/c++/14/bits/stl_iterator.h:1679:5: note: candidate: ‘template<class _IteratorL, class _IteratorR>  requires  three_way_comparable_with<_IteratorR, _IteratorL, std::partial_ordering> constexpr std::compare_three_way_result_t<_IteratorL, _IteratorR> std::operator<=>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)’ (reversed)
 1679 |     operator<=>(const move_iterator<_IteratorL>& __x,
      |     ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1679:5: note:   template argument deduction/substitution failed:
answer.code:65:15: note:   ‘std::basic_ostream<char>::__ostream_type’ {aka ‘std::basic_ostream<char>’} is not derived from ‘const std::move_iterator<_IteratorR>’
   65 |     cout<<ans<endl;
      |               ^~~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/...