Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
94833 华雅萱 06变换四位数 C++ Compile Error 0 MS 0 KB 133 2024-10-26 14:34:33

Tests(0/0):


Code:

include<iostream> using namespace std; int main(){ int a,b,c,d; scanf("%1d%1d%1d%1d",&a,&b,&c,&d); cout<<b<<a<<d<<c;


Run Info:

Main.cc:1:1: error: 'include' does not name a type
 include
 ^
Main.cc: In function 'int main()':
Main.cc:5:37: error: 'scanf' was not declared in this scope
     scanf("%1d%1d%1d%1d",&a,&b,&c,&d);
                                     ^
Main.cc:6:5: error: 'cout' was not declared in this scope
     cout<