My issue
There’s issue in submission
My code
#include <iostream>
using namespace std;
int main() {
// your code goes here
int T;
cin>>T;
int n,k;
while(T--)
{
int A[n];
int B[n];
cin>>n;
cin>>k;
for(int i=0;i<n;i++){
cin>>A[i];
cin>>B[i];
}
for(int i=0;i<n;i++)
{
if(A[i]+B[i]>=k)
{
cout<<"YES";
}
else
{
cout<<"No";
}
}
}
return 0;
}
Problem Link: ARRAY Problem - CodeChef