Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
95566 | 谭思宸 | 04倒序输出五位数 | C++ | Compile Error | 0 MS | 0 KB | 196 | 2024-10-29 20:06:16 |
#include"stdio.h" main() { int a,b,c,d; printf("请输入一个三位数:"); scanf("%d",&a); printf("输入的数字是%d:\n",a); b=a%10; a=a/10; c=a%10; b=a%10; printf("%d",b,c,d);
Main.cc:2:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] main() ^ Main.cc: In function 'int main()': Main.cc:12:18: warning: too many arguments for format [-Wformat-extra-args] printf("%d",b,c,d); ^ Main.cc:12:19: error: expected '}' at end of input printf("%d",b,c,d); ^ Main.cc:6:15: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&a); ^