Delhi odd even problem in testcase

i hv wroteb this code. everything is right acc to me still testcase fail. what am i missing?
here is the code

#include

using namespace std;

int main()
{
int no;
cin>>no; // no of numbers
int sum=0;
int k=1;// number count
while(k<=no){
sum=0;
int n;
cin>>n;
while(n/10>=0){
int x=(n%10);
sum=sum+x;

if(n/10==0){
    break;
}

n=n/10;

}
if(sum%12!=0){
if(sum%2==0){
if(sum%4==0){
cout<<“Yes”<<endl;
}
else {
cout<<“No”<<endl;
}
}

else if(sum%2!=0){
if(sum%3==0){
cout<<“Yes”<<endl;

}
else{
    cout<<"No"<<endl;
}

}

}
else if(sum%12==0){
cout<<“Yes”<<endl;
}

k++;
}
}

hey @ParthCr7, please share your code saved inn codingblocks ide.

how to share your code saved in codingblocks ide

hey @ParthCr7, open this link, paste your code there and press the save button.
Than share the URL here.

here u go.

Any idea what went wrong?

hey @ParthCr7, you should maintain even sum and odd sum differently.
consider this testcase
4
32345
44444
33336
00001
correct Answer
No
Yes
Yes
Yes
your Answer
No
Yes
No
No

my answer is no
yes
yes
no

and how is last output yes
for 0001

and for 33336 should also be no as it is even sum and not divisible by 4
my output is coming no yes no no

hey @ParthCr7, maintain different varible when sum is even and different variable when sum is odd.

no need as it is working properly

sum variable alone is managing all by taking % with 2

hey @ParthCr7,
You misunderstood the problem.
logic is like that
sum1= sum of digits which are even
sum2=sum of digits which are odd
if((sum1%4==0) or(sum2%3==0))
print Yes
else
print No

example
12345
sum1=2+4
sum2=1+3+5

as sum2%3==0 so answer is yes

Example 2 : 12134

sum1= 2+4
sum2=1+1+3

as sum1 %4!=0 and sum2%3!=0
so answer is No

okay. i thought if sum is even and divisible by 4 then yes else no
thanx alot.
i even lost my points.
one more query the points we collect are they important

hey @ParthCr7, these points will help you score in leaderboard. At the end of the course, usually top students gets goodies.

does this affect the certificate the we get on completion of course?

hey @ParthCr7, you should complete 90% course to get certificate. If you completed this question it will be added to your performance.

So No affect.

like in this i submitted still it is red it means it is incomplete?

@sanjeetboora mam, please help him regarding this.