记录详情

Compile Error

/in/foo.c: In function 'merge':
/in/foo.c:17:18: warning: operation on 'k' may be undefined [-Wsequence-point]
    a3[k++] = a1[k++];
                 ~^~
/in/foo.c:19:18: warning: operation on 'k' may be undefined [-Wsequence-point]
    a3[k++] = a2[k++];
                 ~^~
/in/foo.c:22:17: warning: operation on 'k' may be undefined [-Wsequence-point]
   a3[k++] = a1[k++];
                ~^~
/in/foo.c:24:17: warning: operation on 'k' may be undefined [-Wsequence-point]
   a3[k++] = a2[k++];
                ~^~
/in/foo.c:26:17: warning: operation on 'k' may be undefined [-Wsequence-point]
   a2[k++] = a3[k++];
                ~^~
/in/foo.c: In function 'main':
/in/foo.c:34:2: error: too few arguments to function 'merge'
  merge(a1,3,a2,2, a3);
  ^~~~~
/in/foo.c:10:6: note: declared here
 void merge(int a1[], int n1, int a2[], int n2, int a3[],int n3)
      ^~~~~

信息

递交者
类型
自测
题目
A10-1 有序数组的合并
语言
C
递交时间
2019-03-17 19:04:36
评测时间
2019-03-17 19:04:36
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes