func_code_string: #include <bits/stdc++.h>   using namespace std;   const int N = 100005;   long long int ara[N];   int main() {     long long int n, i, j, k, s = 0, ts;     cin >> n;     for (i = 1; i <= n; i++) cin >> ara[i];     for (i = 1; i < n; i++) {       for (j = 30; ara[i] > 0 && j >= 0; j--) {         if ((i + (1 << j)) > n) continue;         s += ara[i];         ara[(i + (1 << j))] += ara[i];         ara[i] = 0;       }       cout << s <<   n ;     }     return 0;   }   