func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int n, q;     char c;     vector<int> a(10);     cin >> n;     for (int i = 0; i < n; i++) {       cin >> c;       if (c ==  L ) {         q = 0;         while (a[q] == 1) {           q++;         }         a[q] = 1;       } else if (c ==  R ) {         q = 9;         while (a[q] == 1) {           q--;         }         a[q] = 1;       } else {         q = (int)c - 48;         a[q] = 0;       }     }     for (int i = 0; i < 10; i++) {       cout << a[i];     }     return 0;   }   