Shopping game getting tle while submitting

//getting tle in this code

#include
using namespace std;

void whowins(int ayush,int harshit){
if(ayush>harshit)
cout<<“Aayush”<<endl;
else
cout<<“Harshit”<<endl;
}

int main(){
int t;
cin>>t;
while(t){
int a,h;
cin>>a>>h;
whowins(a,h);
}
return 0;
}

@shivamraj53.sr,
do t-- in while loop u havent reduced t

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

Hi @shivamraj53.sr
U have reopened the doubt… is there still anything??

yes, when i correct the code and submit, still one testcase fails so i am not getting full score for this problem.

Try this–>

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.