Delhi's odd even probelm

code is running fine but test case showing wrong answerhttps://onlinegdb.com/HJ5vRHDyU

The approach you are using is little bit incorrect in the code, basically, you need to calculate two sum values as , int sume=0,sumo=0;
when you are calculating the remainder value, you need to check that :
if(rem%2==0) sume=sume+rem;
else sumo=sumo+rem;
and then based on the condition given in question , just simply check :
if(sume%4==0 || sumo%3==0)
{
cout<<“Yes”;
}
else if(sume%4!=0 && sumo%3!=0)
{
cout<<“No”;
}

Try to change the logic as per this approach only…