My code is compiling but its not giving output! HELP

#include

using namespace std;

void winnner(int M , int N){
int AS=1 , HS=2;
for (int i = 1; i <= M; i+2) {
if(AS<M)
{
AS+=i;
}
}

for (int j = 2; j <= N; j+2) {
    if(HS<N)
    {
        HS+=j;
    }
}

if(AS<HS){
    cout<<"Harshit";
}

else{
    cout<<"Aayush";
}

}

int main()
{
int t,M,N;
cin>>t;
for (int i = 0; i < t; i++) {
cin>>M>>N;
winnner(M,N);
}

return 0;

}

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