func_code_string: #include <bits/stdc++.h>   using namespace std;   long long n, m;   vector<long long> a;   vector<long long> res;   int main() {     scanf( %I64d , &n);     for (long long i = 1; i <= n; ++i) {       scanf( %I64d , &m);       for (long long j = 0; j < m; ++j) {         a.push_back(i);       }     }     scanf( %I64d , &m);     for (long long i = 0; i < m; ++i) {       scanf( %I64d , &n);       res.push_back(a[n - 1]);     }     for (long long i = 0; i < (long long)res.size(); ++i) {       printf( %I64d n , res[i]);     }     return 0;   }   