Not passing one of the testcases

#include
using namespace std;
int main(){

int n1,n2,M,N,T;
cin>>T;
for(int i=0;i<T;i++){
cin>>M>>N;
for(n1=1;n1<M;n1++){
n1=n1+2;
}
for(n2=2;n2<N;n2++){
n2=n2+2;
}
if(n1>n2){
cout<<“Aayush”<<endl;
}
else if(n2>n1){
cout<<“Harshit”<<endl;
}
}
return 0;

}
https://online.codingblocks.com/app/player/246132/content/235737/5344/code-challenge

hi @sbhardwaj1be21_2a991b329433c059,
kindly refer here https://ide.codingblocks.com/s/660264 and do a dry run on paper that really helps and make base for thinking…

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.

1 Like

https://ide.codingblocks.com/s/660264 - Sir can you please specify the value till which we have to run the first for loop. It is giving compilation error right now.

hi @sbhardwaj1be21_2a991b329433c059, it passing all test case


please check again

I guess there was a glitch on https://ide.codingblocks.com/s/660264 for some time …
it’s running alright now…Thanks

@sbhardwaj1be21_2a991b329433c059 cool!

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.