Help me in solving TRACE problem

My issue

My code

#include <iostream>
using namespace std;

int main() {
	// your code goes here
	
	int t ;
	cin>>t;
	while(t--){
	    int n;
	    cin>>n;
	    int arr[n][n];
	    
	}
	return 0;
}

Problem Link: TRACE Problem - CodeChef