Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
104997 余泽越 04四位数移位 C++ Compile Error 0 MS 0 KB 235 2025-01-11 20:45:13

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:7:17: error: invalid operands of types 'int' and '' to binary 'operator<<'
     b = a/1000<' to binary 'operator<<'
     c = a/100%10<' to binary 'operator<<'
     d = a/10%10<' to binary 'operator<<'
     e = a%10<