Help me in solving MAKEDIV3 problem

My issue

whats wrong to this code

My code

#include <bits/stdc++.h>
using namespace std;

int main() {
	// your code goes here
	int t;
	cin >> t;
	while(t--){
	    int n;
	    cin >> n;
	    if(n == 1)cout << "3\n";
	    else
	    {
	        
	        
	        int x = pow(10,n-1)+5;
	        cout << x << "\n";
	        
	    }
	}

}

Learning course: Jump from 2* to 3*
Problem Link: Make it Divisible Practice Problem in Jump from 2* to 3* - CodeChef

@nikhilpatidar7
the logic is print n-1 times 9 and one time 3