For this Question: A string is called a bad string, if it follows the two conditions:
1. All odd positions of the string contain lowercase letters.
2. All even positions of the string contain uppercase letters. 
 
Determine whether a string S is bad.The first line contains the string S.

<b>Constraints</b>
S consists of uppercase and lowercase English letters.
The length of S is between 1 and 1000 (inclusive).If S is bad, print Yes; otherwise, print No.Sample Input 1 
dIfFiCuLt

Sample Output 1 
Yes

The odd- positioned characters are all lowercase and the even- positioned characters are all uppercase, so it is bad.

Sample Input 2 
eASY

Sample Output 2 
No

The 3- rd character is not lowercase, so it is not bad.

Sample Input 3 
a

Sample Output 3 
Yes, I have written this Solution Code: #include<bits/stdc++.h>
using namespace std;
 
int main(){
  string s;
  cin >> s;
  bool flag = 0;
  for(int i=0; i<s.size(); i++){
    if(i % 2 == 0){
      if(s.at(i) < 97){
        flag = 1;
        break;
      }
    }else{
      if(s.at(i) >= 97){
        flag = 1;
        break;
      }
    }
  }
  
  if(flag) cout << "No" << endl;
  else cout << "Yes" << endl;
}, In this Programming Language: C++, Now tell me if this Code is compilable or not?