func_code_string: #include <bits/stdc++.h>   using namespace std;   long long a[10000000];   int main() {     long long n, i, j, m, l, r, cnt = 0;     string s, s2, s3 =   , s4 =   , s5 =   ;     cin >> s >> s2;     n = s.size();     for (i = 0; i < n - 1; i++) {       if (s[i] == s2[i])         s3 += s[i];       else         break;     }     for (i = n - 1; i > 0; i--) {       if (s[i] == s2[i - 1])         s4 += s[i];       else         break;     }     l = s3.size();     r = s4.size();     if (l + 1 < n - r)       cout <<  0  << endl;     else {       s5 = s5 + s[l];       cnt = 0;       for (i = l; i >= 0; i--) {         if (s5[0] == s[i]) {           a[cnt] = i + 1;           ++cnt;         } else           break;       }       for (i = l + 1; i < n; i++) {         if (s5[0] == s[i]) {           a[cnt] = i + 1;           ++cnt;         } else           break;       }       sort(a, a + cnt);       cout << cnt << endl;       for (i = 0; i < cnt; i++) {         cout << a[i] <<    ;       }     }   }   