Help me in solving GDTURN problem

My issue

My code

#include <iostream>
using namespace std;

int main()
{
    int n,x,y;
  
   cin>>n;
  
    for(int i=1;i<=n;i++)
    {
         
         cin>>x>>y;
        if(( x+y )>6)
        {
            cout<<"YES"<<endl;
        }
        else
        {
            cout<<"NO"<<endl;
        }
        return 0;
    }
}

Problem Link: GDTURN Problem - CodeChef

You have put return 0 inside the for loop , hence your code runs only for first test case and terminates , remove it and put it outside the for loop.