hey guys ,below code is giving wrong answer can you tell me where it is gng wrong.
#include<iostream>
#include<cstdio>
#define FAST_IO ios_base::sync_with_stdio(false);cin.tie(NULL);
using namespace std;
int main()
{
FAST_IO
int T,N,X,A,flag;
cin>>T;
while(T--)
{
flag=0;
cin>>N>>X;
for(int i=0;i<N;i++)
{
cin>>A;
if(A>=X)
{
flag=1;
break;
}
}
if(flag==1)
cout<<"YES"<<"\n";
else
cout<<"NO"<<"\n";
}
return 0;
}