记录详情

Compile Error

foo.c:3:13: error: unknown type name 'inta'; did you mean 'int'?
    3 | void Output(inta[],int n)
      |             ^~~~
      |             int
foo.c: In function 'main':
foo.c:16:7: error: 'i' undeclared (first use in this function)
   16 | int a[i];
      |       ^
foo.c:16:7: note: each undeclared identifier is reported only once for each function it appears in
foo.c:17:9: warning: implicit declaration of function 'Output' [-Wimplicit-function-declaration]
   17 |         Output(n);
      |         ^~~~~~
foo.c:16:5: warning: unused variable 'a' [-Wunused-variable]
   16 | int a[i];
      |     ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
A7-1 数组的输出函数
比赛
2023 程序设计与基础(单个的数组)
语言
C
递交时间
2023-11-21 13:55:14
评测时间
2023-11-21 13:55:14
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes