Chef and secret ingredient giving wrong answer

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;
}

your logic is correct. But u didnt handle constraints. X and Ai cant be stored in int for larger input, check the constraints. And dont use break which will not read next test case.