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