记录详情

Compile Error

foo.c: In function 'main':
foo.c:7:21: error: 'n' undeclared (first use in this function)
    7 |         scanf("%d",&n);
      |                     ^
foo.c:7:21: note: each undeclared identifier is reported only once for each function it appears in
foo.c:8:13: error: 'i' undeclared (first use in this function)
    8 |         for(i=0;i<=n;i++)
      |             ^
foo.c:15:13: error: 'j' undeclared (first use in this function)
   15 |         for(j=0;j<=n;j++)
      |             ^
foo.c:6:13: warning: variable 'a' set but not used [-Wunused-but-set-variable]
    6 |         int a[1000];
      |             ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1082 xf1-5排序与删除
比赛
2023 程序设计与竞赛(作业1:见面赛)
语言
C
递交时间
2023-09-16 19:16:48
评测时间
2023-09-16 19:16:48
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes