func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int n, m, i, a[101], x, y;     cin >> n;     for (i = 1; i <= n; i++) cin >> a[i];     cin >> m;     while (m--) {       cin >> x >> y;       if (x != 1) a[x - 1] += y - 1;       if (x != n) a[x + 1] += a[x] - y;       a[x] = 0;     }     for (i = 1; i <= n; i++) cout << a[i] << endl;     return 0;   }   