func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     ios::sync_with_stdio(0);     cin.tie(0);     int n;     cin >> n;     vector<int> a(n);     for (int i = 0; i < n; i++) {       cin >> a[i];     }     long long ans = 0;     for (int rep = 0; rep < 2; rep++) {       for (int r = 2; r < n; r++) {         long long sum = a[r - 1];         for (int l = r - 2; l >= 0; l--) {           if (a[l] < a[r] && sum == (a[l] ^ a[r])) {             ans++;           }           sum += a[l];           if (__builtin_clzll(sum) < __builtin_clzll(a[r])) {             break;           }         }       }       if (rep == 0) {         reverse(a.begin(), a.end());       }     }     cout << ans << endl;   }   