记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:23:6: error: conflicting types for 'a'
  int a[600];
      ^
/in/foo.c:22:6: note: previous declaration of 'a' was here
  int a,b,c;
      ^
/in/foo.c:29:2: error: 'nc' undeclared (first use in this function)
  nc=Merge(a,na, b,nb, c);
  ^~
/in/foo.c:29:2: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:29:13: error: 'na' undeclared (first use in this function)
  nc=Merge(a,na, b,nb, c);
             ^~
/in/foo.c:29:19: error: 'nb' undeclared (first use in this function)
  nc=Merge(a,na, b,nb, c);
                   ^~
/in/foo.c:29:17: warning: passing argument 3 of 'Merge' makes pointer from integer without a cast [-Wint-conversion]
  nc=Merge(a,na, b,nb, c);
                 ^
/in/foo.c:3:5: note: expected 'int *' but argument is of type 'int'
 int Merge(int a[],int na, int b[],int nb, int c[])
     ^~~~~
/in/foo.c:29:23: warning: passing argument 5 of 'Merge' makes pointer from integer without a cast [-Wint-conversion]
  nc=Merge(a,na, b,nb, c);
                       ^
/in/foo.c:3:5: note: expected 'int *' but argument is of type 'int'
 int Merge(int a[],int na, int b[],int nb, int c[])
     ^~~~~

信息

递交者
类型
递交
题目
A10-1 有序数组的合并
比赛
泰院2405作业赛第二场
语言
C
递交时间
2024-10-28 08:29:08
评测时间
2024-10-28 08:29:08
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes