func_code_string: #include <bits/stdc++.h>   using namespace std;   const long long MOD = 1000 * 1000 * 1000 + 7;   const long long INF = 2 * 1000 * 1000 + 200;   const long long MAXN = 100 * 1000 + 1;   const long long MLOG = 18;   const long long NMAX = 1 * 1000;   signed main() {     long long n, m, a[200];     a[0] = 0;     long long x, y;     cin >> n;     for (long long i = 1; i <= n; i++) cin >> a[i];     cin >> m;     for (long long i = 0; i < m; i++) {       cin >> x >> y;       a[x - 1] += y - 1;       a[x + 1] += a[x] - y;       a[x] = 0;     }     for (long long i = 1; i <= n; i++) cout << a[i] << endl;   }   