For this Question: Given a string which contains all special characters along with letters of the english alphabet, both uppercase and lowercase, your task is to reverse the given string such that special characters will not get affectedInput contains a single line containing the string S.

Constraints:-
1 <= |S| <= 100000

Note:- String will contain alphabets (A. Z, a. z) and special characters (@, #, $ ....)
String may contains empty spacesPrint the reverse string without affecting special characters <b>or</b> reverse string in which only alphabets are reversedSample Input:-
Ab,c,de!$

Sample Output:-
ed,c,bA!$

Sample Input:-
a!!!b. c. d, e'f, ghi

Sampple Output:-
i!!!h. g. f, e'd, cba, I have written this Solution Code: 
#include <bits/stdc++.h>


using namespace std;

#define MEM(a, b) memset(a, (b), sizeof(a))

#define FOREACH(it, l) for (auto it = l.begin(); it != l.end(); it++)

#define IN(A, B, C) assert( B <= A && A <= C)

#define MP make_pair
#define FOR(i,a) for(int i=0;i<a;i++)

#define FOR1(i,j,a) for(int i=j;i<a;i++)

#define EB emplace_back

#define INF (int)1e9

#define EPS 1e-9

#define PI 3.1415926535897932384626433832795
#define max1 101
#define MOD 1000000007

#define read(type) readInt<type>()

#define out(x) cout<<x<<'\n'
#define out1(x) cout<<x<<" "
#define END cout<<'\n'
#define int long long
#define sz(v) ((int)(v).size())
#define all(v) (v).begin(), (v).end()
void fast(){
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
}

signed main(){

    int t;
    t=1;
    while(t--){
string s;
getline(cin,s);
int n=s.length();
vector<char> v;
int x;
for(int i=0;i<n;i++){
    x=s[i]-'A';
    if(x>=0 && x<26){
        v.EB(s[i]);
    }
    x=s[i]-'a';
    if(x>=0 && x<26){
        v.EB(s[i]);
    }

}
reverse(v.begin(),v.end());
int j=0;
int p;
FOR(i,n){
  x=s[i]-'A';
  p=s[i]-'a';
    if(x>=0 && x<26){
        cout<<v[j];
        j++;
    }

    else if(p>=0 && p<26){
        cout<<v[j];
        j++;
    }
    else{
        cout<<s[i];
    }


}
END;
}
}
, In this Programming Language: C++, Now tell me if this Code is compilable or not?