While compiling correct but all test case fail while submitting

#include
using namespace std;
int main() {
int n;cin>>n;
while(n–){
int a_m,h_m;cin>>a_m>>h_m;
int a_c=0,h_c=0;
for(int i=1;;i++){
if(i%2==0){
if(i+a_c<=a_m){
a_c=a_c+i;
}
else{
cout<<“Harshit”<<endl;break;
}
}
else{
if(i+h_c<=h_m){
h_c=h_c+i;
}
else{
cout<<“Aayaush”<<endl;break;
}

		}
	}

}

return 0;

}

Hello @yashtripathi6969_0cd127807d833066
Could you pls share the question link of hacckerblocks. Because I need to look the whole question.

Faculty at CodingBlocks loves to purchase smartphones and decides to play a game. Aayush and Harshit decides to shop for smartphones. Aayush purchases 1 smartphone, then Harshit purchases 2 smartphones, then Aayush purchases 3 smartphones, then Harshit purchases 4 smartphones, and so on. Once someone can’t purchase more smartphones, he loses. Aayush can purchase at most M smartphones and Harshit can purchase at most N smartphones. Who will win ? Print “Aayush” and “Harshit” accordingly. Input Format The first line of the input contains an integer T denoting the number of test cases. The description of T test cases follows. Two integers M and N denoting the maximum possible number of smartphones Aayush and Harshit can purchase respectively.