Submission #1592652


Source Code Expand

#include <bits/stdc++.h>

using namespace std;  

int n;
int main() {
	scanf("%d", &n);
	int cnt1 = 0, cnt = 0;
	for(int i = 0, x; i < n; i++) {
		scanf("%d", &x);
		if(x & 1) cnt1++;
	}
	if(cnt1 % 2 == 0) printf("YES\n");
	else printf("NO\n");
	return 0;
} 

Submission Info

Submission Time
Task A - Addition
User vjudge5
Language C++14 (Clang 3.8.0)
Score 0
Code Size 258 Byte
Status CE

Compile Error

./Main.cpp:1:10: fatal error: 'bits/stdc++.h' file not found
#include <bits/stdc++.h>
         ^
1 error generated.