func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int kase, ks = 0;     int i, j, k;     int n;     int arr[1000];     string s;     cin >> n;     for (i = 1; i < n + 1; i++) cin >> arr[i];     int q;     cin >> q;     int x, y;     while (q--) {       cin >> x >> y;       if (x > 1) arr[x - 1] += (y - 1);       if (x < n) arr[x + 1] += (arr[x] - y);       arr[x] = 0;     }     for (i = 1; i < n + 1; i++) cout << arr[i] << endl;     return 0;   }   