| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 129419 | 庹雨泽 | 02买礼物 | C++ | Compile Error | 0 MS | 0 KB | 101 | 2025-08-25 15:05:49 |
#include<iostream> using namespace std; int main(){ cout<<1000-(220*4)<endl; return 0; }
Main.cc: In function 'int main()':
Main.cc:5:20: error: no match for 'operator<' (operand types are 'std::basic_ostream' and '')
cout<<1000-(220*4) constexpr bool std::operator<(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)
operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
^
/usr/include/c++/5/bits/stl_pair.h:220:5: note: template argument deduction/substitution failed:
Main.cc:5:21: note: 'std::basic_ostream' is not derived from 'const std::pair<_T1, _T2>'
cout<<1000-(220*4) bool std::operator<(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)
operator<(const reverse_iterator<_Iterator>& __x,
^
/usr/include/c++/5/bits/stl_iterator.h:298:5: note: template argument deduction/substitution failed:
Main.cc:5:21: note: 'std::basic_ostream' is not derived from 'const std::reverse_iterator<_Iterator>'
cout<<1000-(220*4) bool std::operator<(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&)
operator<(const reverse_iterator<_IteratorL>& __x,
^
/usr/include/c++/5/bits/stl_iterator.h:348:5: note: template argument deduction/substitution failed:
Main.cc:5:21: note: 'std::basic_ostream' is not derived from 'const std::reverse_iterator<_Iterator>'
cout<<1000-(220*4) bool std::operator<(const std::move_iterator<_Iterator>&, const std::move_iterator<_IteratorR>&)
operator<(const move_iterator<_IteratorL>& __x,
^
/usr/include/c++/5/bits/stl_iterator.h:1089:5: note: template argument deduction/substitution failed:
Main.cc:5:21: note: 'std::basic_ostream' is not derived from 'const std::move_iterator<_Iterator>'
cout<<1000-(220*4) bool std::operator<(const std::move_iterator<_Iterator>&, const std::move_iterator<_Iterator>&)
operator<(const move_iterator<_Iterator>& __x,
^
/usr/include/c++/5/bits/stl_iterator.h:1095:5: note: template argument deduction/substitution failed:
Main.cc:5:21: note: 'std::basic_ostream' is not derived from 'const std::move_iterator<_Iterator>'
cout<<1000-(220*4) bool std::operator<(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
^
/usr/include/c++/5/bits/basic_string.h:4987:5: note: template argument deduction/substitution failed:
Main.cc:5:21: note: 'std::basic_ostream' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>'
cout<<1000-(220*4) bool std::operator<(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*)
operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
^
/usr/include/c++/5/bits/basic_string.h:4999:5: note: template argument deduction/substitution failed:
Main.cc:5:21: note: 'std::basic_ostream' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>'
cout<<1000-(220*4) bool std::operator<(const _CharT*, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
operator<(const _CharT* __lhs,
^
/usr/include/c++/5/bits/basic_string.h:5011:5: note: template argument deduction/substitution failed:
Main.cc:5:21: note: mismatched types 'const _CharT*' and 'std::basic_ostream'
cout<<1000-(220*4)' to 'const std::error_code&'
/usr/include/c++/5/system_error:274:3: note: candidate: bool std::operator<(const std::error_condition&, const std::error_condition&)
operator<(const error_condition& __lhs,
^
/usr/include/c++/5/system_error:274:3: note: no known conversion for argument 1 from 'std::basic_ostream' to 'const std::error_condition&'