Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
67911 揭伟琦 04四位数移位 C++ Compile Error 0 MS 0 KB 168 2024-03-17 15:46:29

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n; cin >>n; a=n%10; b=n/10%10; c=n/100%10; d=n/1000%10; cout <<a<<d<<c<<b; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:6:2: error: 'a' was not declared in this scope
  a=n%10;
  ^
Main.cc:7:2: error: 'b' was not declared in this scope
  b=n/10%10;
  ^
Main.cc:8:2: error: 'c' was not declared in this scope
  c=n/100%10;
  ^
Main.cc:9:2: error: 'd' was not declared in this scope
  d=n/1000%10;
  ^