Help me in solving CSCV210A problem

My issue

My code

// The code below is incorrect. Debug the code to solve this problem
#include <bits/stdc++.h>
using namespace std;

int main() 
{
  int t;
  cin>>t;
  while(t--)
   {
    int X,Y;
    //Accept 2 integers inputs.
    cin>>X>>Y;       
    
    if (X == Y)         
      {
        cout<<"YES"<<endl;
       }
    else
      {
        cout<<"NO"<<endl;
       }
   }
 return 0;
}

Learning course: C++ for problem solving - 1
Problem Link: CodeChef: Practical coding for everyone

@abhiyudayadity
Needed one more condition that at least one goal is scored by each team means X and Y should be greater than 0.

@dpcoder_007 thank you