func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     pair<int, int> k[3];     char cell[9][9];     int n;     cin >> n;     char c;     int z = 0;     while (n) {       for (int i = 1; i < 9; i++) {         for (int j = 1; j < 9; j++) {           cin >> c;           if (c ==  K ) {             k[z].first = i;             k[z].second = j;             z++;           }         }       }       if (abs(k[0].first - k[1].first) == 4 ||           abs(k[0].first - k[1].first) == 0) {         if (abs(k[0].second - k[1].second) == 4 ||             abs(k[0].second - k[1].second) == 0) {           cout <<  YES n ;           z = 0;           n--;           continue;         }       }       cout <<  NO n ;       z = 0;       n--;     }     return 0;   }   