记录详情

Compile Error

foo.c: In function 'main':
foo.c:10:34: error: 'y' undeclared (first use in this function)
   10 |                 scanf("%d%d",&x,&y);
      |                                  ^
foo.c:10:34: note: each undeclared identifier is reported only once for each function it appears in
foo.c:13:33: error: 'a' undeclared (first use in this function)
   13 |                                 a[i]=2*x;
      |                                 ^
foo.c:11:19: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
   11 |                 if(x==y)
      |                   ^
foo.c:16:19: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
   16 |                 if(x-2==y)
      |                   ^
foo.c:7:15: warning: unused variable 'y\U0000ff0ca' [-Wunused-variable]
    7 |         int x,y,a[20000];
      |               ^~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1543 Problem 6A. 台阶
语言
C
递交时间
2023-11-14 14:56:06
评测时间
2023-11-14 14:56:06
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes