Help me in solving GDTURN problem

My issue

what will i take the limit for t in the question

My code

#include <iostream>
using namespace std;

int main() {
    int t;
    cin>>t;
    while(t<=sizeof(t)){
        int x,y,sum;
        cin>>x>>y;
        sum=x+y;
        if(sum>=6){
            cout<<"yes";
        }
        else{
            cout<<"no";
        }
        t++;
        
        // your code goes here
    }
	return 0;
}

Problem Link: Good Turn Practice Coding Problem - CodeChef

@preetii06
plzz refer the following solution

#include <iostream>
using namespace std;

int main() {
	// your code goes here
	int t;
	cin>>t;
	while(t--)
	{
	    int x,y;
	    cin>>x>>y;
	    if(x+y>6)
	    cout<<"YES";
	    else
	    cout<<"NO";
	    cout<<endl;
	}
	return 0;
}