For this Question: Given a string S (containing only letters of the English alphabet), find all the capital letters in it (in exactly same order as the string)

Note:- It is guaranteed that the given string will contain at least one capital.Input contains a single line containing the string S.

Constraints:-
1 <= |S| <= 100Print all capital letters present in the string separated by space, in the order of their appearance in the main string.Sample input:-
AbcdEF

Sample Output:-
A E F

Sample Input:-
NewtonSchool

Sample Output:-
N S, 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 1000001
#define MOD 1000000000000007

#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);
}
int cnt[max1];
signed main(){

  string s;

  cin>>s;
  int n=s.length();
//out(s);
     FOR(i,n){
   if(s[i]>='A' && s[i]<='Z'){
    out1(s[i]);
   }
   }
return 0;
}


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