func_code_string: #include <bits/stdc++.h>   using namespace std;   ifstream fin( lol.in );   ofstream fout( lol.out );   char c;   int m[10][10], ok;   int main() {     ios::sync_with_stdio(false);     for (int i = 1; i <= 6; ++i) {       m[1][i] = m[6][i] = 100;       m[i][1] = m[i][6] = 100;     }     for (int i = 2; i <= 5; ++i) {       for (int j = 2; j <= 5; ++j) {         cin >> c;         if (c ==  x ) m[i][j] = 1;         if (c ==  o ) m[i][j] = 100;       }     }     for (int i = 2; i <= 5; ++i) {       for (int j = 2; j <= 5; ++j) {         if (m[i][j] + m[i + 1][j] + m[i + 2][j] == 2) ok = 1;         if (m[i][j] + m[i + 1][j + 1] + m[i + 2][j + 2] == 2) ok = 1;         if (m[i][j] + m[i + 1][j - 1] + m[i + 2][j - 2] == 2) ok = 1;         if (m[i][j] + m[i][j + 1] + m[i][j + 2] == 2) ok = 1;         if (ok == 1) {           cout <<  YES ;           return 0;         }       }     }     if (ok == 1) {       cout <<  YES ;       return 0;     } else       cout <<  NO ;     return 0;   }   