Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
95567 谭思宸 04倒序输出五位数 C Compile Error 0 MS 0 KB 196 2024-10-29 20:06:28

Tests(0/0):


Code:

#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);


Run Info:

Main.c:2:1: warning: return type defaults to 'int' [-Wimplicit-int]
 main()
 ^
Main.c: In function 'main':
Main.c:12:8: warning: too many arguments for format [-Wformat-extra-args]
 printf("%d",b,c,d);
        ^
Main.c:12:1: error: expected declaration or statement at end of input
 printf("%d",b,c,d);
 ^
Main.c:6:1: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
 scanf("%d",&a);
 ^