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

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+*10<e<<endl; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:10:22: error: invalid type argument of unary '*' (have 'int')
  cout' to binary 'operator<'
  cout<<c*1000+b*100+*10<e<<endl;
                            ^