func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int n;     cin >> n;     while (n--) {       string s;       cin >> s;       int len = s.size();       int ok = 1;       for (int i = 0; i < len; i++) {         if (i == len) {           if (s[i - 1] !=  a )             s[i] =  a ;           else if (s[i - 1] !=  b )             s[i] =  b ;           else if (s[i - 1] !=  c )             s[i] =  c ;         }         if (s[i] ==  ?  && i != len) {           if (s[i - 1] !=  a  && s[i + 1] !=  a )             s[i] =  a ;           else if (s[i - 1] !=  b  && s[i + 1] !=  b )             s[i] =  b ;           else if (s[i - 1] !=  c  && s[i + 1] !=  c )             s[i] =  c ;         }       }       for (int i = 0; i < len - 1; i++) {         if (s[i] == s[i + 1]) ok = 0;       }       if (!ok)         cout <<  -1               <<   n ;       else         cout << s <<   n ;     }     return 0;   }   