func_code_string: #include <bits/stdc++.h>   using namespace std;   long long gcd(long long a, long long b) {     if (b == 0) return a;     return gcd(b, a % b);   }   long long fac(long long n) {     if (n == 1) return 1;     return n * fac(n - 1);   }   long long power(long long x, long long y) {     long long res = 1;     for (long long i = 1; i <= y; i++) res = (res * x) % 1000000007;     return res % 1000000007;   }   int32_t main() {     long long T = 1;     while (T--) {       long long n;       cin >> n;       long long a[n];       long long e = 0, o = 0;       for (long long i = 0; i < n; i++) {         cin >> a[i];         if (i % 2 == 0)           e += a[i];         else           o += a[i];       }       long long ans = 0;       for (long long i = 0; i < n; i++) {         if (i % 2 == 0) {           if (e - a[i] == o) ans++;           e -= a[i];           o += a[i];         } else {           if (o - a[i] == e) ans++;           e += a[i];           o -= a[i];         }       }       cout << ans << endl;     }     return 0;   }   