记录详情

Compile Error

foo.c: In function 'FindNumbers':
foo.c:23:22: error: subscripted value is neither array nor pointer nor vector
   23 |                 if (a[i] < 0)
      |                      ^
foo.c:25:41: error: 'n' undeclared (first use in this function)
   25 |                 for (int j = i + 1; j < n; j++)
      |                                         ^
foo.c:25:41: note: each undeclared identifier is reported only once for each function it appears in
foo.c:27:30: error: subscripted value is neither array nor pointer nor vector
   27 |                         if (a[i] == a[j])
      |                              ^
foo.c:27:38: error: subscripted value is neither array nor pointer nor vector
   27 |                         if (a[i] == a[j])
      |                                      ^
foo.c:28:34: error: subscripted value is neither array nor pointer nor vector
   28 |                                 a[j] = -1;
      |                                  ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
2-3 参赛人数
语言
C
递交时间
2023-10-28 19:42:51
评测时间
2023-10-28 19:42:51
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes