Delhi's Odd Even

Question is Due to growing Traffic Problem Kejriwal wants to devise a new scheme. The scheme is as follows, each car will be allowed to run on Sunday if the sum of digits which are even is divisible by 4 or sum of digits which are odd in that number is divisible by 3. However to check every car for the above criteria can’t be done by the Delhi Police. You need to help Delhi Police by finding out if a car numbered N will be allowed to run on Sunday? No output is displayed on screen please look at the code.:

#include
using namespace std;
int main() {
int carn,n,i=0,sumeve=0,sumodd=0,rem=0;
for(i=0;i<n;i++){
cin>>carn;
while(carn!=0){
rem = carn%10;
carn = carn/10;
if(rem%2==0){
sumeve = sumeve+rem;
}
else if(rem%3 == 0){
sumodd = sumodd+rem;
}

}
if(sumeve%4==0 || sumodd%3==0){
    cout<<"Yes";
}
else{
    cout<<"No";
}
}
return 0;

}