func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int r, c;     cin >> r >> c;     char mat[r + 5][c + 5];     for (int i = 1; i <= r; i++) {       for (int j = 1; j <= c; j++) {         cin >> mat[i][j];       }     }     for (int i = 1; i <= r; i++) {       for (int j = 1; j <= c; j++) {         if (mat[i][j] ==  B ) {           int rw = 0, cl = 0;           for (int k = j; k <= c; k++) {             if (mat[i][k] ==  B )               cl++;             else               break;           }           for (int k = i; k <= r; k++) {             if (mat[k][j] ==  B )               rw++;             else               break;           }           cout << i + rw / 2 <<     << j + cl / 2 << endl;           return 0;         }       }     }     return 0;   }   