Please help to find the error in this code according to your test cases

#include
using namespace std;
int sumofnumber(int j)
{
int num, sum = 0;
num = j;
while (num != 0)
{
sum = sum + num % 10;
num = num / 10;
}
return sum;

}
int main()
{
int n,i;
cin>>n;
for(i=1;i<=n;i++)
{
int j;
cin>>j;
sumofnumber(j);
if((j%2)==0)
{
if((j%4)==0)
{
cout<<“Yes”<<endl;
}
if((j%4)!=0)
{
cout<<“No”<<endl;
}
}
if((j%2)!=0)
{
if((j%3)==0)
{
cout<<“Yes”<<endl;
}
if((j%3)!=0)
{
cout<<“No”<<endl;
}
}
}
return 0;
}

hi chirag
consider your code for the following test cases
4
32345
44444
33336
00001
expected output:
No
Yes
Yes
Yes
your output:
No
Yes
Yes
No

Okay thanks I got the problem