记录详情

Compile Error

foo.c: In function 'main':
foo.c:5:19: error: 'x' undeclared (first use in this function)
    5 |         int a[3]={x,y,z};
      |                   ^
foo.c:5:19: note: each undeclared identifier is reported only once for each function it appears in
foo.c:5:21: error: 'y' undeclared (first use in this function)
    5 |         int a[3]={x,y,z};
      |                     ^
foo.c:5:23: error: 'z' undeclared (first use in this function)
    5 |         int a[3]={x,y,z};
      |                       ^
foo.c:8:22: error: expected ';' before 'for'
    8 |         scanf("%d",z)
      |                      ^
      |                      ;
    9 |         for (i=0,i<2,i++)
      |         ~~~           
foo.c:5:13: warning: unused variable 'a' [-Wunused-variable]
    5 |         int a[3]={x,y,z};
      |             ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
A1-1 分支结构练习:三数排序
比赛
2023年新生赛(第一场)
语言
C
递交时间
2023-08-15 09:49:30
评测时间
2023-08-15 09:49:30
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes