Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
68458 周奕辰 06变换四位数 C++ Compile Error 0 MS 0 KB 179 2024-03-23 14:27:54

Tests(0/0):


Code:

#include<iostream> #include <cstdio> using namespace std; int main(){ int a,b,c,d; scarf("%1d%1d%1d%1d",&a,&b,&c,&d); cout << b << a << d << c; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:6:37: error: 'scarf' was not declared in this scope
     scarf("%1d%1d%1d%1d",&a,&b,&c,&d);
                                     ^