For this Question: Given an integer N, find out if it is divisible by 11 or not.The first line of the input contains a single integer N.

Constraints:
1 <= N <= 10<sup>100000</sup>Print "YES", if N is divsible by 11, else print "NO".Sample Input:
121

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

signed main(){
    string s;
    cin >> s;
    int odd = 0, eve = 0;
    for(int i = 0; i < s.size(); i++){
        if(i % 2) odd += s[i] - '0';
        else eve += s[i] - '0';
    }
    int d = abs(odd - eve);
    if(d % 11 == 0) cout << "YES";
    else cout << "NO";
}, In this Programming Language: C++, Now tell me if this Code is compilable or not?