Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
142516 李铭洋 04四位数移位 C++ Compile Error 0 MS 0 KB 184 2026-01-10 20:23:45

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:10:2: error: expected ';' before 'd'
  d=a/100%10;
  ^