func_code_string: #include <bits/stdc++.h>   using namespace std;   const int maxn = 2e5 + 10;   vector<int> a[maxn];   string s;   int i, ma = -1, ans = 0, f = 1;   int main() {     cin >> s;     for (i = 0; i < s.size(); i++) {       if (s[i] ==  0 )         a[++ans].push_back(i);       else {         if (ans == 0) {           f = 0;           break;         }         a[ans--].push_back(i);       }       ma = max(ans, ma);     }     if (ma != ans) f = 0;     if (!f) {       cout << -1;       return 0;     } else {       cout << ma <<   n ;       for (i = 1; i <= ma; i++) {         cout << a[i].size() <<    ;         for (int j = 0; j < a[i].size(); j++) {           cout << a[i][j] + 1 <<    ;         }         cout <<   n ;       }     }   }   