My issue
My code
#include <iostream>
using namespace std;
int main() {
int T;
cin>>T;
while (T>0) {
int N;
cin>>N;
int a[N];
int i;
int p;
for (i=0;i<N;i++) {
cin>>a[i];
}
if (N%2==0) {
for (i=0;i<N;i++) {
if (count a[i]%2==0) {
cout<<"YES"<<endl;
}
}
} else {
cout<<"NO"<<endl;
}
}
// your code goes here
return 0;
}
Problem Link: PETSTORE Problem - CodeChef