Help me in solving DAA033 problem

My issue

give the correct code

My code

#include <bits/stdc++.h>
using namespace std;
 
double find_median(int arr[], int n) {
    double ans = 0;
    // Write your code here

    
    return ans;
}

int main() {
    int t; cin >> t;
    while(t--) {
        int n; cin >> n;
        int arr[n];
        for(int i = 0; i < n; i++) {
            cin >> arr[i];
        }

        cout << setprecision(20) << find_median(arr, n) << "\n";
    }
    return 0;
}

Learning course: Analysis and Design of Algorithms
Problem Link: Median of a Sorted List in Analysis and Design of Algorithms