func_code_string: #include <bits/stdc++.h>   using namespace std;   int a[200002], even[200002], odd[200002];   int main() {     int n;     cin >> n;     cin >> a[1];     for (int i = 2; i <= n; i++) {       cin >> a[i];       if (i & 1) {         even[i] = even[i - 1] + a[i - 1];         odd[i] = odd[i - 1];       } else {         even[i] = even[i - 1];         odd[i] = odd[i - 1] + a[i - 1];       }     }     if ((n + 1) & 1) {       even[n + 1] = even[n] + a[n];       odd[n + 1] = odd[n];     } else {       even[n + 1] = even[n];       odd[n + 1] = odd[n] + a[n];     }     int ans = 0;     for (int i = 1; i <= n; i++) {       int x, y;       if (i & 1) {         x = odd[i] + even[n + 1] - even[i];         y = even[i] + odd[n + 1] - odd[i + 1];       } else {         x = odd[i] + even[n + 1] - even[i + 1];         y = even[i] + odd[n + 1] - odd[i];       }       if (x == y) ans++;     }     cout << ans;     return 0;   }   