#include <iostream>
#include<vector>
#include<string>
using namespace std;
#include<iostream>
int getindex(vector<int> &arr, int low, int high) {//low<igh
int temp = arr[low];
while (low < high) {
while (low < high&&arr[high] >= temp)high--;
arr[low] = arr[high];
while (low < high&&arr[low] <= temp)low++;
arr[high] = arr[low];
}
arr[low] = temp;
return low;
}
void quicksort(vector<int> &arr,int low,int high) {
if (low < high) {
int index = getindex(arr, low, high);
quicksort(arr, low, index - 1);
quicksort(arr, index + 1, high);
}
}
int main()
{
vector<int> str = {23,46,0,8,11};
quicksort(str, 0, str.size() - 1);
for (auto i : str) {
cout << i << " ";
}
}