func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int n, tmp, curr = 0;     cin >> n;     int v[n], res[n];     for (int i = 0; i < n; i++) {       cin >> tmp;       v[tmp] = i + 1;     }     for (int i = 0; i < n; i++) {       cin >> tmp;       if (v[tmp] > curr) {         res[i] = v[tmp] - curr;         curr = v[tmp];       } else         res[i] = 0;     }     for (int i = 0; i < n; i++) cout << res[i] <<    ;   }   