#include 

void selection_sort(int arr[], int n) {
    for (int i = 0; i <; n-1; i++) {
        int min_index = i;
        for (int j = i+1; j <; n; j++) {
            if (arr[j] <; arr[min_index]) {
                min_index = j;
            }
        }
        int temp = arr[i];
        arr[i] = arr[min_index];
        arr[min_index] = temp;
    }
}

int main() {
    int arr[] = {64, 25, 12, 22, 11};
    int n = sizeof(arr)/sizeof(arr[0]);
    selection_sort(arr, n);
    printf("排序后的数组:\n");
    for (int i=0; i <; n; i++) {
        printf("%d ", arr[i]);
    }
    return 0;
}