For the merge sort did you mean for it to be a function of type int vector instead of void, because in the pdf example you sent us you have code that shows:
left_list = mergesort(left_list)
right_list = mergesort(right_list)
which is simply not possible when the merge sort function is a void.
Edit:
Found out that merge sort is possible with the mergesort function being of type void pay no attention to this.
For the merge sort did you mean for it to be a function of type int vector instead of void, because in the pdf example you sent us you have code that shows:
left_list = mergesort(left_list)
right_list = mergesort(right_list)
which is simply not possible when the merge sort function is a void.
Edit:
Found out that merge sort is possible with the mergesort function being of type void pay no attention to this.