| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 147731 | 李铭洋 | 08三个数排序 | C++ | Compile Error | 0 MS | 0 KB | 442 | 2026-02-07 14:15:25 |
#include<iostream> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; if(a>b&&a>c&&b>c) { cout<<a>>" ">>b>>" ">>c; } else if(a>b&&a>c&&b<c) { cout<<a>>" ">>c>>" ">>b; } else if(a<b&&a<c&&b<c) { cout<<c>>" ">>b>>" ">>a; } else if(c>b&&c>a&&a>b) { cout<<c>>" ">>a>>" ">>b; } else if(b>a&&b>c&&a>c) { cout<<b>>" ">>a>>" ">>c; } else { cout<<b>>" ">>c>>" ">>a; } return 0; }
Main.cc: In function 'int main()': Main.cc:9:10: error: no match for 'operator>>' (operand types are 'std::basic_ostream' and 'const char [2]') cout<>" ">>b>>" ">>c; ^ In file included from /usr/include/c++/5/string:53:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/ostream:38, from /usr/include/c++/5/iostream:39, from Main.cc:1: /usr/include/c++/5/bits/basic_string.tcc:1441:5: note: candidate: template std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) operator>>(basic_istream<_CharT, _Traits>& __in, ^ /usr/include/c++/5/bits/basic_string.tcc:1441:5: note: template argument deduction/substitution failed: Main.cc:9:12: note: 'std::basic_ostream' is not derived from 'std::basic_istream<_CharT, _Traits>' cout<