Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
4720 刘轩宁 06变换四位数 C++ Compile Error 0 MS 0 KB 195 2024-09-07 20:59:01

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ int a,b,c,d,e; cin>>a; b=a/1000%10; c=a/100%10; d=a%10; e=a/10%10; cout<<c*1000+b*100+d*10<e<<endl; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:10:29: error: invalid operands of types 'int' and '' to binary 'operator<'
  cout<<c*1000+b*100+d*10<e<<endl;
                             ^