Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
134418 zyh 04四位数移位 C++ Compile Error 0 MS 0 KB 140 2025-10-27 16:32:41

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a,b; scanf("%d",&a); b=a%10; cout<<b; a/=10; cout<<a; return 0; }


Run Info:

Main.cc:1:25: warning: extra tokens at end of #include directive
 #include using namespace std;
                         ^
Main.cc: In function 'int main()':
Main.cc:4:29: error: 'cout' was not declared in this scope
     scanf("%d",&a); b=a%10; cout<