Language: C++

#include<iostream>
using namespace std;
#define rep(i,n) for(int =1;i<=(n);i++);
int main(){
  int h,w,cnt=0;cin>>h>>w;
  rep(i,h){
    rep(j,w)cin>>c[i][j];
  }
  rep(i,h){
    rep(j,w){
      if(c[i][j] == '#' && c[i][j - 1] != '#' && c[i - 1][j] != '#' && c[i][j + 1] != '#' && c[i + 1][j] != '#')cnt++;
    }
  }
  cout<<(cnt==0?"Yes":"No")<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:26: error: expected unqualified-id before '=' token
    3 | #define rep(i,n) for(int =1;i<=(n);i++);
      |                          ^
a.cc:6:3: note: in expansion of macro 'rep'
    6 |   rep(i,h){
      |   ^~~
a.cc:3:26: error: expected ';' before '=' token
    3 | #define rep(i,n) for(int =1;i<=(n);i++);
      |                          ^
a.cc:6:3: note: in expansion of macro 'rep'
    6 |   rep(i,h){
      |   ^~~
a.cc:3:26: error: expected primary-expression before '=' token
    3 | #define rep(i,n) for(int =1;i<=(n);i++);
      |                          ^
a.cc:6:3: note: in expansion of macro 'rep'
    6 |   rep(i,h){
      |   ^~~
a.cc:6:7: error: 'i' was not declared in this scope
    6 |   rep(i,h){
      |       ^
a.cc:3:29: note: in definition of macro 'rep'
    3 | #define rep(i,n) for(int =1;i<=(n);i++);
      |                             ^
a.cc:3:35: error: expected ')' before ';' token
    3 | #define rep(i,n) for(int =1;i<=(n);i++);
      |                     ~             ^
a.cc:6:3: note: in expansion of macro 'rep'
    6 |   rep(i,h){
      |   ^~~
a.cc:6:7: error: 'i' was not declared in this scope
    6 |   rep(i,h){
      |       ^
a.cc:3:36: note: in definition of macro 'rep'
    3 | #define rep(i,n) for(int =1;i<=(n);i++);
      |                                    ^
a.cc:3:26: error: expected unqualified-id before '=' token
    3 | #define rep(i,n) for(int =1;i<=(n);i++);
      |                          ^
a.cc:7:5: note: in expansion of macro 'rep'
    7 |     rep(j,w)cin>>c[i][j];
      |     ^~~
a.cc:3:26: error: expected ';' before '=' token
    3 | #define rep(i,n) for(int =1;i<=(n);i++);
      |                          ^
a.cc:7:5: note: in expansion of macro 'rep'
    7 |     rep(j,w)cin>>c[i][j];
      |     ^~~
a.cc:3:26: error: expected primary-expression before '=' token
    3 | #define rep(i,n) for(int =1;i<=(n);i++);
      |                          ^
a.cc:7:5: note: in expansion of macro 'rep'
    7 |     rep(j,w)cin>>c[i][j];
      |     ^~~
a.cc:7:9: error: 'j' was not declared in this scope
    7 |     rep(j,w)cin>>c[i][j];
      |         ^
a.cc:3:29: note: in definition of macro 'rep'
    3 | #define rep(i,n) for(int =1;i<=(n);i++);
      |                             ^
a.cc:3:35: error: expected ')' before ';' token
    3 | #define rep(i,n) for(int =1;i<=(n);i++);
      |                     ~             ^
a.cc:7:5: note: in expansion of macro 'rep'
    7 |     rep(j,w)cin>>c[i][j];
      |     ^~~
a.cc:7:9: error: 'j' was not declared in this scope
    7 |     rep(j,w)cin>>c[i][j];
      |         ^
a.cc:3:36: note: in definition of macro 'rep'
    3 | #define rep(i,n) for(int =1;i<=(n);i++);
      |                                    ^
a.cc:7:18: error: 'c' was not declared in this scope
    7 |     rep(j,w)cin>>c[i][j];
      |                  ^
a.cc:3:26: error: expected unqualified-id before '=' token
    3 | #define rep(i,n) for(int =1;i<=(n);i++);
      |                          ^
a.cc:9:3: note: in expansion of macro 'rep'
    9 |   rep(i,h){
      |   ^~~
a.cc:3:26: error: expected ';' before '=' token
    3 | #define rep(i,n) for(int =1;i<=(n);i++);
      |                          ^
a.cc:9:3: note: in expansion of macro 'rep'
    9 |   rep(i,h){
      |   ^~~
a.cc:3:26: error: expected primary-expression before '=' token
    3 | #define rep(i,n) for(int =1;i<=(n);i++);
      |                          ^
a.cc:9:3: note: in expansion of macro 'rep'
    9 |   rep(i,h){
      |   ^~~
a.cc:3:35: error: expected ')' before ';' token
    3 | #define rep(i,n) for(int =1;i<=(n);i++);
      |                     ~             ^
a.cc:9:3: note: in expansion of macro 'rep'
    9 |   rep(i,h){
      |   ^~~
a.cc:3:26: error: expected unqualified-id before '=' token
    3 | #define rep(i,n) for(int =1;i<=(n);i++);
      |                          ^
a.cc:10:5: note: in expansion of macro 'rep'
   10 |     rep(j,w){
      |     ^~~
a.cc:3:26: error: expected ';' before '=' token
    3 | #define rep(i,n) for(int =1;i<=(n);i++);
      |                          ^
a.cc:10:5: note: in expansion of macro 'rep'
   10 |     rep(j,w){
      |     ^~~
a.cc:3:26: error: expected primary-expression before '=' token
    3 | #define rep(i,n) for(int =1;i<=(n);i++);
      |                          ^
a.cc:10:5: note: in expansion of macro 'rep'
   10 |     rep(j,w){
      |     ^~~
a.cc:10:9: error: 'j' was not declared in this scope
   10 |     rep(j,w){
      |         ^
a.cc:3:29: note: in definition of macro 'rep'
    3 | #define rep(i,n) for(int =1;i<=(n);i++);
      |                             ^
a.cc:3:35: error: expected ')' before ';' token
    3 | #define rep(i,n) for(int =1;i<=(n);i++);
      |                     ~             ^
a.cc:10:5: note: in expansion of macro 'rep'
   10 |     rep(j,w){
      |     ^~~
a.cc:10:9: error: 'j' was not declared in this scope
   10 |     rep(j,w){
      |         ^
a.cc:3:36: note: in definition of macro 'rep'
    3 | #define rep(i,n) for(int =1;i<=(n);i++);
      |                                    ^
a.cc:11:10: error: 'c' was not declared in this scope
   11 |       if(c[i][j] == '#' && c[i][j - 1] != '#' && c[i - 1][j] != '#' && c[i][j + 1] != '#' && c[i + 1][j] != '#')cnt++;
      |          ^