func_code_string: #include <bits/stdc++.h>   using namespace std;   int32_t main() {     ios_base::sync_with_stdio(false);     cin.tie(NULL);     cout.tie(NULL);     long long int n;     cin >> n;     long long int a[n];     for (long long int i = 0; i < n; i++) cin >> a[i];     long long int m;     cin >> m;     long long int num1[m], num2[m];     for (long long int i = 0; i < m; i++) {       cin >> num1[i] >> num2[i];     }     for (long long int i = 0; i < m; i++) {       long long int x = num1[i] - 1;       long long int y = num2[i];       if (x - 1 >= 0) {         a[x - 1] += y - 1;       }       if (x + 1 < n) {         a[x + 1] += a[x] - y;       }       a[x] = 0;     }     for (long long int i = 0; i < n; i++) cout << a[i] << endl;     return 0;   }   