Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
            string str;
             int acount=0;
             int bcount=0;
             
            for(int i = 0;i < N,i++)  
            {
              cin >> str.at(i);
            }
              cin >> A;
              cin >> B;
              cin >> C;
              cin >> D;
  
              if(C > D)
              {
                for(int i=B; i<D-2,i++)
                {
                  if(str.at(i)=='.'&&str.at(i+1)=='.'&&str.at(i+2)='.')
                  {
                    acount++;
                  }
                }
                for(int i=A; i<C-1,i++)
                {
                  if(str.at(i)=='#'&&str.at(i+1)=='#')
                  {
                    bcount++;
                  }
                }
                if(acount>0&&bcount==0)
                {
                  cout << "Yes" 
                }       
                else
                {
                  cout << "No"
                }
              }  
             else
             {
               for(int i=A; i<C-1,i++)
                {
                  if(str.at(i)=='#'&&str.at(i+1)=='#')
                  {
                    bcount++;
                  }
                }
                if(bcount==0)
                {
                  cout << "Yes" 
                }       
                else
                {
                  cout << "No"
                }
             }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:31: error: 'N' was not declared in this scope
    9 |             for(int i = 0;i < N,i++)
      |                               ^
a.cc:9:36: error: expected ';' before ')' token
    9 |             for(int i = 0;i < N,i++)
      |                                    ^
      |                                    ;
a.cc:13:22: error: 'A' was not declared in this scope
   13 |               cin >> A;
      |                      ^
a.cc:14:22: error: 'B' was not declared in this scope
   14 |               cin >> B;
      |                      ^
a.cc:15:22: error: 'C' was not declared in this scope
   15 |               cin >> C;
      |                      ^
a.cc:16:22: error: 'D' was not declared in this scope
   16 |               cin >> D;
      |                      ^
a.cc:20:39: error: expected ';' before ')' token
   20 |                 for(int i=B; i<D-2,i++)
      |                                       ^
      |                                       ;
a.cc:22:54: error: lvalue required as left operand of assignment
   22 |                   if(str.at(i)=='.'&&str.at(i+1)=='.'&&str.at(i+2)='.')
      |                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
a.cc:27:39: error: expected ';' before ')' token
   27 |                 for(int i=A; i<C-1,i++)
      |                                       ^
      |                                       ;
a.cc:36:32: error: expected ';' before '}' token
   36 |                   cout << "Yes"
      |                                ^
      |                                ;
   37 |                 }
      |                 ~               
a.cc:40:31: error: expected ';' before '}' token
   40 |                   cout << "No"
      |                               ^
      |                               ;
   41 |                 }
      |                 ~              
a.cc:45:38: error: expected ';' before ')' token
   45 |                for(int i=A; i<C-1,i++)
      |                                      ^
      |                                      ;
a.cc:54:32: error: expected ';' before '}' token
   54 |                   cout << "Yes"
      |                                ^
      |                                ;
   55 |                 }
      |                 ~               
a.cc:58:31: error: expected ';' before '}' token
   58 |                   cout << "No"
      |                               ^
      |                               ;
   59 |                 }
      |                 ~