Pls explain where i am wrong!

#include
#include<math.h>
using namespace std;

int main() {

int n;
cin>>n;
for(int k=0;k<n;k++)
{long long int m,n;
cin>>m>>n;

long long int naayush=pow(m,0.5);
long long int nharshit=n/2;

int i=1;
while(naayush!=0 && nharshit!=0){
	if(i%2!=0) naayush--;
	else nharshit--;
	i++;
}	

if(naayush==0) cout<<"Harshit"<<endl;
else cout<<"Aayush"<<endl;}

return 0;

}

hi @anshul3558_e8c9aa486c392ca3,
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.