记录详情

Compile Error

/in/foo.c:2:17: error: parameter 'a' has just a forward declaration
 void Output(int a[]; int size)
                 ^
/in/foo.c: In function 'Output':
/in/foo.c:6:15: error: 'a' undeclared (first use in this function)
   printf("%d",a[i]);
               ^
/in/foo.c:6:15: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c: In function 'main':
/in/foo.c:20:9: warning: passing argument 1 of 'Output' makes integer from pointer without a cast [-Wint-conversion]
  Output(a,N);
         ^
/in/foo.c:2:6: note: expected 'int' but argument is of type 'int *'
 void Output(int a[]; int size)
      ^~~~~~
/in/foo.c:20:2: error: too many arguments to function 'Output'
  Output(a,N);
  ^~~~~~
/in/foo.c:2:6: note: declared here
 void Output(int a[]; int size)
      ^~~~~~

信息

递交者
类型
自测
题目
A7-1 数组的输出函数
语言
C
递交时间
2024-10-22 16:05:56
评测时间
2024-10-22 16:05:56
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes