For this Question: You are given an array having N integers. Find the absolute difference in sums of even numbers and odd numbers in the array.The first line of the input contains a single integer N.
The second line of the input contains N space seperated integers.

Constraints:
1 <= N <= 10<sup>5</sup>
1 <= A<sub>i</sub> <= 10<sup>9</sup>Print the absolute difference in sums of even numbers and odd numbers in the array.Sample Input:
5
3 4 6 9 7

Sample Output:
9, I have written this Solution Code: #include<bits/stdc++.h>
using namespace std;
#define int long long

signed main(){
    int n;
    cin >> n;
    vector<int> a(n);
    for(auto &i : a) cin >> i;
    int odd = 0, eve = 0;
    for(auto &i : a){
        if(i % 2) odd += i;
        else eve += i;
    }
    cout << abs(odd - eve);
}, In this Programming Language: C++, Now tell me if this Code is compilable or not?