记录详情

Compile Error

/in/foo.c:9:6: error: conflicting types for 'Output'
 void Output(int b[])
      ^~~~~~
/in/foo.c:3:6: note: previous definition of 'Output' was here
 void Output(int a[], int n)
      ^~~~~~
/in/foo.c: In function 'Output':
/in/foo.c:11:17: error: 'n' undeclared (first use in this function)
  for(int i=0; i<n; i++)
                 ^
/in/foo.c:11:17: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c: In function 'main':
/in/foo.c:20:2: error: 'b' undeclared (first use in this function)
  b[]={5}, n=8;
  ^
/in/foo.c:20:4: error: expected expression before ']' token
  b[]={5}, n=8;
    ^
/in/foo.c:21:2: error: too many arguments to function 'Output'
  Output(a, n);
  ^~~~~~
/in/foo.c:9:6: note: declared here
 void Output(int b[])
      ^~~~~~
/in/foo.c:22:2: error: too many arguments to function 'Output'
  Output(b, n);
  ^~~~~~
/in/foo.c:9:6: note: declared here
 void Output(int b[])
      ^~~~~~
/in/foo.c:18:6: warning: unused variable 'i' [-Wunused-variable]
  int i,
      ^

信息

递交者
类型
递交
比赛
泰院2405作业赛第一场
语言
C
递交时间
2024-10-22 08:36:29
评测时间
2024-10-22 08:36:29
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes