Delhi's Odd Even Question

Submission #3674290
I want to know where i am making a mistake. The final test-case after submitting is showing wrong-answer.
#include
using namespace std;
int main() {
int n, carno;
cin >> n;
while(n–){
cin >> carno;
int sum = 0;

    while(carno != 0){
        sum += carno % 10;
        carno /= 10;
    }
    if(sum % 2 == 0){
        if(sum % 4 == 0) cout << "Yes" << endl;
        else cout << "No" << endl;
    }
    else{
        if(sum % 3 == 0) cout << "Yes" << endl;
        else cout << "No" << endl;
    }
}
return 0;

}

Harsh plz send your code by saving on ide so that I could check the mistake.