func_code_string: #include <bits/stdc++.h>   using namespace std;   const int N = 1e5 + 10;   char s[N];   int a[N], sta[N], tp;   int main() {     scanf( %s , s + 1);     int n = strlen(s + 1);     for (int i = 1; i <= n; ++i)       if (s[i] ==  0 ) {         if (tp) a[sta[tp--]] = 1;       } else         sta[++tp] = i;     for (int i = 1; i <= n; ++i) printf( %d , a[i]);     return 0;   }   