func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     ios_base::sync_with_stdio(false);     cin.tie(NULL), cout.tie(NULL);     int n, t, num, x;     long long int ans;     cin >> n;     vector<int> vect;     vect.push_back(0);     for (int i = 0; i < n; ++i) {       cin >> x;       vect.push_back(x);     }     long long int dp[n];     dp[1] = vect[1];     t = log2(n - 1);     num = 1 + pow(2, t);     vect[num] += vect[1];     for (int i = 2; i <= n - 1; ++i) {       dp[i] = dp[i - 1] + vect[i];       t = log2(n - i);       num = i + pow(2, t);       vect[num] += vect[i];     }     for (int i = 1; i < n; ++i) cout << dp[i] << endl;     return 0;   }   