Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
106385 | 于铁林 | 04倒序输出五位数 | C++ | Compile Error | 0 MS | 0 KB | 197 | 2025-01-16 10:47:48 |
#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); printf("%d%d%d%d%d"e,d,c,b,a); return 0; }
Main.cc: In function 'int main()': Main.cc:7:12: error: unable to find string literal operator 'operator""e' with 'const char [11]', 'long unsigned int' arguments printf("%d%d%d%d%d"e,d,c,b,a); ^ 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); ^