func_code_string: #include <bits/stdc++.h>   using namespace std;   int mas[1010][1010];   int mas1[1001][1001];   bool check(int i, int j) {     return mas[i][j] && mas[i + 1][j] && mas[i + 2][j] && mas[i + 2][j + 1] &&            mas[i + 2][j + 2] && mas[i + 1][j + 2] && mas[i][j + 2] &&            mas[i][j + 1];   }   void draw(int i, int j) {     mas1[i][j] = mas1[i + 1][j] = mas1[i + 2][j] = mas1[i + 2][j + 1] =         mas1[i + 2][j + 2] = mas1[i + 1][j + 2] = mas1[i][j + 2] =             mas1[i][j + 1] = 1;   }   int main() {     int n, m;     cin >> n >> m;     for (int i = 1; i <= n; ++i)       for (int j = 1; j <= m; ++j) {         char temp;         cin >> temp;         if (temp ==  # )           mas[i][j] = 1;         else           mas[i][j] = 0;       }     for (int i = 1; i <= n - 2; ++i)       for (int j = 1; j <= m - 2; ++j) {         if (check(i, j)) draw(i, j);       }     bool f = 1;     for (int i = 1; i <= n; ++i)       for (int j = 1; j <= m; ++j) {         if (mas[i][j] && !mas1[i][j]) f = 0;       }     if (f)       cout <<  YES ;     else       cout <<  NO ;     return 0;   }   