#include using namespace std; void swap(int* a, int* b){ int tmp = *a; *a = *b; *b = tmp; } void QuickSort(int* A, int q, int r) { if (q