Unable to whats wrong understand

#include
using namespace std;
int main() {
int t;
cin>>t;
while(t–)
{
int n,r=0;
cin>>n;
int num=n;
while(n>0)
{
r=r+n%10;
n=n/10;
}
if(num%2==0)
{
if(r%4==0)
cout<<“Yes”<<endl;
else
cout<<“No”<<endl;
}
else
{
if(r%3==0)
cout<<“Yes”<<endl;
else
cout<<“No”<<endl;
}

}
return 0;

}

read question carefully
sum of digits which are even is divisible by 4 or
sum of digits which are odd

Is your doubt resolved. Mark it as resolved if it is so.