func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int n;     cin >> n;     int *b = new int[n];     int max_val = 0;     for (int i = 0; i < n; i++) {       cin >> b[i];       if (i == 0) {       } else if (i == 1) {         b[i] = b[0] + b[1];         max_val = (b[0] > b[1]) ? b[0] : b[1];       } else {         b[i] = max_val + b[i];         if (max_val < b[i]) max_val = b[i];       }       cout << b[i] <<    ;     }     cout << endl;     return 0;   }   