Can u suggest cjhanges and i also try using merge in sorted the left and right but still error

@sgdon142,
In the code you have given above, you are simply concatenating the left and right vectors, how will it ensure that the vector obtained is sorted. You have to merge them, like you do in merge sort.