Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
132676 卢锦琰 04倒序输出五位数 C++ Compile Error 0 MS 0 KB 182 2025-10-12 10:17:26

Tests(0/0):


Code:

#include<iostream> #include<cstdio> 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; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:6:29: error: expected ')' before ';' token
     scanf ("%1d%1d%1d%1d%1d";&a,&b,&c,&d,&e);
                             ^
Main.cc:6:34: warning: left operand of comma operator has no effect [-Wunused-value]
     scanf ("%1d%1d%1d%1d%1d";&a,&b,&c,&d,&e);
                                  ^
Main.cc:6:37: warning: right operand of comma operator has no effect [-Wunused-value]
     scanf ("%1d%1d%1d%1d%1d";&a,&b,&c,&d,&e);
                                     ^
Main.cc:6:40: warning: right operand of comma operator has no effect [-Wunused-value]
     scanf ("%1d%1d%1d%1d%1d";&a,&b,&c,&d,&e);
                                        ^
Main.cc:6:43: warning: right operand of comma operator has no effect [-Wunused-value]
     scanf ("%1d%1d%1d%1d%1d";&a,&b,&c,&d,&e);
                                           ^
Main.cc:6:44: error: expected ';' before ')' token
     scanf ("%1d%1d%1d%1d%1d";&a,&b,&c,&d,&e);
                                            ^
Main.cc:6:45: warning: right operand of comma operator has no effect [-Wunused-value]
     scanf ("%1d%1d%1d%1d%1d";&a,&b,&c,&d,&e);
                                             ^