Wrong Answer

foo.cc: In function 'void MergeSort_(int, int)':
foo.cc:14:49: warning: operation on 'i' may be undefined [-Wsequence-point]
   14 |                 if(a[i+1]>=b[j+1]) num[i+j+l]=a[++i];
      |                                                 ^~~
foo.cc:14:49: warning: operation on 'i' may be undefined [-Wsequence-point]
foo.cc:15:35: warning: operation on 'j' may be undefined [-Wsequence-point]
   15 |                 else num[i+j+l]=b[++j];
      |                                   ^~~
foo.cc:15:35: warning: operation on 'j' may be undefined [-Wsequence-point]
foo.cc:17:35: warning: operation on 'i' may be undefined [-Wsequence-point]
   17 |         while(i!=la) num[i+j+l]=a[++i]; //b数组填完了 轮到a数组了
      |                                   ^~~
foo.cc:17:35: warning: operation on 'i' may be undefined [-Wsequence-point]
foo.cc:18:35: warning: operation on 'j' may be undefined [-Wsequence-point]
   18 |         while(j!=lb) num[i+j+l]=b[++j]; //a数组填完了 轮到b数组了
      |                                   ^~~
foo.cc:18:35: warning: operation on 'j' may be undefined [-Wsequence-point]
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 78, expect 98. 2ms 256.0 KiB

信息

递交者
类型
自测
题目
P1088 数组--排序
语言
C++
递交时间
2022-08-30 19:55:40
评测时间
2022-08-30 19:55:40
评测机
分数
0
总耗时
2ms
峰值内存
256.0 KiB