func_code_string: #include <bits/stdc++.h>   using namespace std;   const int N = 4e5 + 9;   vector<int> ans[N];   vector<char> arr;   int k, n, q, a, hash[N][50], ar[N], s;   char c;   string str;   bool flag;   int main() {     cin >> k;     cin >> str;     int n = str.size();     for (int i = 1; i <= k; i++)       for (int j = 0; j < n; j++) arr.push_back(str[j]);     for (int i = 0; i < arr.size(); i++) ans[arr[i]].push_back(i);     cin >> q;     for (int i = 1; i <= q; i++) {       cin >> a >> c;       arr[ans[c][a - 1]] =  0 ;       ans[c].erase(ans[c].begin() + a - 1);     }     for (int i = 0; i < arr.size(); i++)       if (arr[i] !=  0 ) cout << arr[i];     return 0;   }   