Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  	string str ;
	int TATE=0  , YOKO=0 , LOOK = 0 ,TATE = 1, YOKO = 0 ;
  cin >> TATE >> YOKO ;
  
  for (int i = 0; i < YOKO; i++) {
    cin >> str;
    if ( str.at (LOOK) == '#') {
      cout << "#" << endl;
     break;
    }
    else if  (LOOK == 0!){
      if (str.at(LOOK-1)=='#'{
        count++;}
          }
    else if ((LOOK+1) == (N-1)!){
	  if (str.at(LOOK+1))=='#'{
        count++;}
    }
          
  }
         int UE = 0,SITA = 0;
   while (UE == 1 && SITA == 1){
     if (TATE ==1){
        UE ++;
     }else {

     if (TATE == (A-1){
     	UE ++;
      else if (UE == 0){
		if (str.at(LOOK=='#')){
          count ++;
        }
        LOOK ++;
        if (str.at(LOOK=='#')){
          count ++;
        }
        LOOK = LOOK -2;
        if (str.at(LOOK=='#')){
          count ++;
        }
         UE ++;
      }
      else if (SITA == 0){
        
        
        
        
        
        
        LOOK ++;
       
        
        
     }
  	
   }
   
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:42: error: redeclaration of 'int TATE'
    6 |         int TATE=0  , YOKO=0 , LOOK = 0 ,TATE = 1, YOKO = 0 ;
      |                                          ^~~~
a.cc:6:13: note: 'int TATE' previously declared here
    6 |         int TATE=0  , YOKO=0 , LOOK = 0 ,TATE = 1, YOKO = 0 ;
      |             ^~~~
a.cc:6:52: error: redeclaration of 'int YOKO'
    6 |         int TATE=0  , YOKO=0 , LOOK = 0 ,TATE = 1, YOKO = 0 ;
      |                                                    ^~~~
a.cc:6:23: note: 'int YOKO' previously declared here
    6 |         int TATE=0  , YOKO=0 , LOOK = 0 ,TATE = 1, YOKO = 0 ;
      |                       ^~~~
a.cc:15:24: error: expected ')' before '!' token
   15 |     else if  (LOOK == 0!){
      |              ~         ^
      |                        )
a.cc:16:30: error: expected ')' before '{' token
   16 |       if (str.at(LOOK-1)=='#'{
      |          ~                   ^
      |                              )
a.cc:18:11: error: expected primary-expression before '}' token
   18 |           }
      |           ^
a.cc:19:27: error: 'N' was not declared in this scope
   19 |     else if ((LOOK+1) == (N-1)!){
      |                           ^
a.cc:19:31: error: expected ')' before '!' token
   19 |     else if ((LOOK+1) == (N-1)!){
      |             ~                 ^
      |                               )
a.cc:20:30: error: expected primary-expression before '==' token
   20 |           if (str.at(LOOK+1))=='#'{
      |                              ^~
a.cc:31:19: error: 'A' was not declared in this scope
   31 |      if (TATE == (A-1){
      |                   ^
a.cc:31:23: error: expected ')' before '{' token
   31 |      if (TATE == (A-1){
      |         ~             ^
      |                       )
a.cc:62:1: error: expected primary-expression before '}' token
   62 | }
      | ^
a.cc:62:2: error: expected '}' at end of input
   62 | }
      |  ^
a.cc:26:32: note: to match this '{'
   26 |    while (UE == 1 && SITA == 1){
      |                                ^
a.cc:62:2: error: expected '}' at end of input
   62 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^