merge的大括号标错位置了呢()
```cpp
void merge(int begin1,int end1,int begin2,int end2)
{
int index = 0;
int i=begin1,j=begin2;
while(i<=end1&&j<=end2)
{
if(a[i]<=a[j])
{
tmp[index++] = a[i];
i++;
}
else
{
count+=end1-i+1;
tmp[index++] = a[j];
j++;
}
}
while(i<=end1)
tmp[index++] = a[i++];
while(j<=end2)
tmp[index++] = a[j++];
memcpy(a+begin1,tmp,sizeof(int)*index);
}
```
by cxlian25 @ 2024-02-01 01:10:00
@[cxlian25](/user/836104) 懂了懂了!谢谢dalao
by Hgvuryg27 @ 2024-02-06 18:33:27