QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#126079 | #6668. Trokuti | monstersqwq | Compile Error | / | / | C++14 | 3.7kb | 2023-07-18 10:07:26 | 2023-07-18 10:07:27 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
answer.code: In function ‘int qry(int, int, int)’: answer.code:119:46: error: no match for ‘operator<’ (operand types are ‘std::basic_ostream<char>’ and ‘const char [2]’) 119 | int t;cout<<x<<" "<<y<<" "<<z<"\n"; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ | | | | | const char [2] | std::basic_ostream<char> In file included from /usr/include/c++/11/bits/stl_algobase.h:64, from /usr/include/c++/11/bits/char_traits.h:39, from /usr/include/c++/11/string:40, from answer.code:4: /usr/include/c++/11/bits/stl_pair.h:489:5: note: candidate: ‘template<class _T1, class _T2> constexpr bool std::operator<(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)’ 489 | operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/11/bits/stl_pair.h:489:5: note: template argument deduction/substitution failed: answer.code:119:47: note: ‘std::basic_ostream<char>’ is not derived from ‘const std::pair<_T1, _T2>’ 119 | int t;cout<<x<<" "<<y<<" "<<z<"\n"; | ^~~~ In file included from /usr/include/c++/11/bits/stl_algobase.h:67, from /usr/include/c++/11/bits/char_traits.h:39, from /usr/include/c++/11/string:40, from answer.code:4: /usr/include/c++/11/bits/stl_iterator.h:422:5: note: candidate: ‘template<class _Iterator> bool std::operator<(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)’ 422 | operator<(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/11/bits/stl_iterator.h:422:5: note: template argument deduction/substitution failed: answer.code:119:47: note: ‘std::basic_ostream<char>’ is not derived from ‘const std::reverse_iterator<_Iterator>’ 119 | int t;cout<<x<<" "<<y<<" "<<z<"\n"; | ^~~~ In file included from /usr/include/c++/11/bits/stl_algobase.h:67, from /usr/include/c++/11/bits/char_traits.h:39, from /usr/include/c++/11/string:40, from answer.code:4: /usr/include/c++/11/bits/stl_iterator.h:461:5: note: candidate: ‘template<class _IteratorL, class _IteratorR> bool std::operator<(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&)’ 461 | operator<(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/11/bits/stl_iterator.h:461:5: note: template argument deduction/substitution failed: answer.code:119:47: note: ‘std::basic_ostream<char>’ is not derived from ‘const std::reverse_iterator<_Iterator>’ 119 | int t;cout<<x<<" "<<y<<" "<<z<"\n"; | ^~~~ In file included from /usr/include/c++/11/bits/stl_algobase.h:67, from /usr/include/c++/11/bits/char_traits.h:39, from /usr/include/c++/11/string:40, from answer.code:4: /usr/include/c++/11/bits/stl_iterator.h:1557:5: note: candidate: ‘template<class _IteratorL, class _IteratorR> bool std::operator<(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorR>&)’ 1557 | operator<(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/11/bits/stl_iterator.h:1557:5: note: template argument deduction/substitution failed: answer.code:119:47: note: ‘std::basic_ostream<char>’ is not derived from ‘const std::move_iterator<_IteratorL>’ 119 | int t;cout<<x<<" "<<y<<" "<<z<"\n"; | ^~~~ In file included from /usr/include/c++/11/bits/stl_algobase.h:67, from /usr/include/c++/11/bits/char_traits.h:39, from /usr/include/c++/11/string:40, from answer.code:4: /usr/include/c++/11/bits/stl_iterator.h:1613:5: note: candidate: ‘template<class _Iterator> bool std::operator<(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorL>&)’ 1613 | operator<(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/11/bits/stl_iterator.h:1613:5: note: template argument deduction/substitution failed: answer.code:119:47: note: ‘std::basic_ostream<char>’ is not derived from ‘const std::move_iterator<_IteratorL>’ 119 | int t;cout<<x<<" "<<y<<" "<<z<"\n"; | ^~~~ In file included from /usr/include/c++/11/string:55, from answer.code:4: /usr/include/c++/11/bits/basic_string.h:6326:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const std::__cxx11::basic_st...