Shopping game problem

Can’t pass last test case.

#include

using namespace std;
void smart(int x){
int i=1;
while(i<=x){
int m,n;
cin>>m>>n;
if((m>=1 && m<=1000000) && (n>=1 && n<=1000000)){
int aayush=-1;
int harsh=0;
while(1){
aayush=aayush+2;
harsh=harsh+2;
if(m<aayush){
cout<<“Harshit”<<endl;
break;
}
else if(n<harsh){
cout<<“Aayush”<<endl;

        break;
    }
    else{
        continue;
    }
}
	}
i++;
}

}

int main() {
int x;
cin>>x;
if(x>=1 && x<=1000){
smart(x);
}
return 0;
}

hi @shuja33
Refer 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.

thanks for sending me your code.can you tell me what’s wrong with my code

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.