Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
99993 李朋秦 04倒序输出五位数 C++ Compile Error 0 MS 0 KB 229 2024-12-01 12:33:19

Tests(0/0):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() using namespace std; int main(){ int a,b,c,d,e,; scanf("%1d%1d%1d%1d%1d",&a,&b,&c,&d,&e); cout<<e<<d<<c<<b<<a<<endl; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:5:19: error: expected unqualified-id before ';' token
     int a,b,c,d,e,;
                   ^
Main.cc:6:44: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%1d%1d%1d%1d%1d",&a,&b,&c,&d,&e);
                                            ^