记录详情

Compile Error

foo.c: In function 'main':
foo.c:6:10: error: expected declaration specifiers or '...' before string constant
   printf("请输入数字正整数\n");
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.c:7:14: error: 'x' undeclared (first use in this function)
  scanf("%d",&x);
              ^
foo.c:7:14: note: each undeclared identifier is reported only once for each function it appears in
foo.c:10:3: error: 'a' undeclared (first use in this function)
   a[i]=x%10;
   ^
foo.c:10:5: error: 'i' undeclared (first use in this function)
   a[i]=x%10;
     ^
foo.c:11:3: error: 'sum' undeclared (first use in this function)
   sum=sum*10+a[i];
   ^~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
A4-2 回文数专题:反数
比赛
中北 计算机2021级专业修读指导(1)
语言
C
递交时间
2021-11-30 19:56:56
评测时间
2021-11-30 19:56:56
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes