Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
97363 陈治宸 06变换四位数 C++ Compile Error 0 MS 0 KB 209 2024-11-14 20:42:10

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:8:7: error: expected primary-expression before '%' token
     b=%1000/100;
       ^