Language: C++

#inclde<bits/stdc++.h>
using namespace std;
int main(){
  int N,A,B,C,D;
  cin >>N>>A>>B>>C>>D;
  string S;
  cin >>S;
  int count=0;
  int memory=1;
  if(C<D){
    for(int i=A;i<C;i++){
      if(S.at(i)=='.'){
        count=0;
      }
      if(S.at(i)=='#'){
        count++;
      }
      if(count==3){
        memory=0;
        break;
      }
    }
     for(int i=B;i<D;i++){
      if(S.at(i)=='.'){
        count=0;
      }
      if(S.at(i)=='#'){
        count++;
      }
      if(count==3){
        memory=0;
        break;
      }
    }
  }
  int Memory=1;
  if(C>D){
    bool finished=false;
    for(int j=B;j<D-1;j++){
      S.at(j)='#';
      for(int i=A;i<C;i++){
        if(S.at(i)=='.'){
         count=0;
        }
        if(S.at(i)=='#'){
         count++;
        }
        if(count==3){
         Memory=0;
         break;
        }
        if(i=C-1){
         Memory=1;
         finished=true;
         break;
        }
      }  
      if(finished){
          break;
      }
    }
  }
  if(memory==1){
    cout<<"Yes"<<endl;
  }
  if(memory==0){
    cout<<"No"<<endl;
  }
  if(Memory==1){
    cout<<"Yes"<<endl;
  }
  if(Memory==0){
    cout<<"No"<<endl;
  }
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclde; did you mean #include?
    1 | #inclde<bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >>N>>A>>B>>C>>D;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inclde<bits/stdc++.h>
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   string S;
      |   ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | #inclde<bits/stdc++.h>
a.cc:7:9: error: 'S' was not declared in this scope
    7 |   cin >>S;
      |         ^
a.cc:64:5: error: 'cout' was not declared in this scope
   64 |     cout<<"Yes"<<endl;
      |     ^~~~
a.cc:64:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:64:18: error: 'endl' was not declared in this scope
   64 |     cout<<"Yes"<<endl;
      |                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inclde<bits/stdc++.h>
a.cc:67:5: error: 'cout' was not declared in this scope
   67 |     cout<<"No"<<endl;
      |     ^~~~
a.cc:67:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:67:17: error: 'endl' was not declared in this scope
   67 |     cout<<"No"<<endl;
      |                 ^~~~
a.cc:67:17: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:70:5: error: 'cout' was not declared in this scope
   70 |     cout<<"Yes"<<endl;
      |     ^~~~
a.cc:70:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:70:18: error: 'endl' was not declared in this scope
   70 |     cout<<"Yes"<<endl;
      |                  ^~~~
a.cc:70:18: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:73:5: error: 'cout' was not declared in this scope
   73 |     cout<<"No"<<endl;
      |     ^~~~
a.cc:73:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:73:17: error: 'endl' was not declared in this scope
   73 |     cout<<"No"<<endl;
      |                 ^~~~
a.cc:73:17: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'