Not accepting the program

Dear sir;
it is not accepting.
please check and debug my code.
#include
using namespace std;
int main(){

int n;
cin >> n;

if(n>=0 & n<=1000){
long long int a[1000];
for(int i=0;i<n;i++){
    cin >> a[i];
}

int b[1000];
for(int i=0;i<n;i++){
    int r,temp;
    temp = a[i];

    int sum  = 0;

    while(temp > 0){
        r = temp%10;
        sum += r;
        temp /= 10;
    }
  b[i] = sum;
}

for(int i=0;i<n;i++){
    if(b[i]%2 == 0 & b[i]%4 == 0){
        cout << b[i] <<" Yes" << endl;

    }
    else if(b[i]%2 != 0 &  b[i]%3 == 0){
        cout << b[i] <<" Yes" << endl;

    }
    else{
        cout <<  b[i] <<" No" << endl;
	 }

}

}
else{
cout << " ‘n’ not in range" << endl;
}

return 0;
}

hey Saikat!, for a given number you have to calculate sum of digits of even and odd numbers separately and output yes if sum_of_evens%4==0 or sum_of_odds%3==0,else output NO.
for this maintain two variables - sum_of_evens and sum_of_odds.
Please rewrite code again as this code is far from correct solution

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.