func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int n, s;     int ans = 0;     cin >> n;     for (int i = 1; i <= n; i++) {       cin >> s;       ans += s * i;     }     cout << ans << endl;     return 0;   }   