For this Question: Given a number N, your task is to find if it is a perfect square or not.The first line of input contains the number of test cases T, the next T lines contains a single integer N.

<b>Constraints:</b>
1 < = T < = 1000
1 < = N < = 10<sup>12</sup>For each test case, print "YES" if the number N is a perfect square else print "NO".Sample Input:-
2
625
624

Sample Output:-
YES
NO, I have written this Solution Code: #include <bits/stdc++.h>
using namespace std;
int main()
{

 
    int t;
    cin>>t;
    while(t--){
        long long n;
        cin>>n;
        long long  x=sqrt(n);
long long p = x*x;
        if(p==n){cout<<"YES"<<endl;;}
        else{
            cout<<"NO"<<endl;
        }

    }

}
, In this Programming Language: C++, Now tell me if this Code is compilable or not?