Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
147732 李铭洋 08三个数排序 C++ Compile Error 0 MS 0 KB 442 2026-02-07 14:17:32

Tests(0/0):


Code:

#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; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:13:18: error: no match for 'operator>>' (operand types are 'std::basic_ostream' and 'const char [2]')
   cout<>" "< 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:13:20: note:   'std::basic_ostream' is not derived from 'std::basic_istream<_CharT, _Traits>'
   cout<