func_code_string: #include <bits/stdc++.h>   using namespace std;   const int N = 1e5 + 10;   int a[N];   int main() {     int n;     cin >> n;     for (int i = 1; i <= n; i++) cin >> a[i];     int pw = 1;     for (int i = 2; i <= n + 10; i++) {       pw *= 2;       if (pw > n) {         pw /= 2;         break;       }     }     int t = 0;     for (int i = 1; i <= n - 1; i++) {       if (a[i] <= 0) {         cout << t <<   n ;         continue;       }       while (i + pw > n) pw /= 2;       t += a[i];       a[i + pw] += a[i];       a[i] = 0;       cout << t <<   n ;     }   }   