func_code_string: #include <bits/stdc++.h>   using namespace std;   const int MAXN = 100 * 1000 + 17;   long long n, a[MAXN], ans;   int main() {     ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);     cin >> n;     for (int i = 1; i <= n; i++) cin >> a[i];     for (int i = 1; i < n; i++) {       int t = log2(n - i);       a[i + (1 << t)] += a[i];       ans += a[i];       a[i] = 0;       cout << ans << endl;     }     return 0;   }   