Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
148309 苏钰苗 06变换四位数 C++ Compile Error 0 MS 0 KB 199 2026-02-11 09:37:51

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:12:2: error: expected ';' before 'cout'
  cout<