Help me in solving CODETOWN problem

My issue

i am not able to…

My code

#include <iostream>
using namespace std;

int main() {
	// your code goes here
	return 0;
}

Problem Link: Reach Codetown Practice Coding Problem - CodeChef

@kjainharsh
plzz refer the following code

#include <iostream>
using namespace std;

bool followsPattern(string s) {
    if (
        (s[0] != 'A' && s[0] != 'E' && s[0] != 'I' && s[0] != 'O' && s[0] != 'U') &&
        (s[1] == 'A' || s[1] == 'E' || s[1] == 'I' || s[1] == 'O' || s[1] == 'U') &&
        (s[2] != 'A' && s[2] != 'E' && s[2] != 'I' && s[2] != 'O' && s[2] != 'U') &&
        (s[3] == 'A' || s[3] == 'E' || s[3] == 'I' || s[3] == 'O' || s[3] == 'U') &&
        (s[4] != 'A' && s[4] != 'E' && s[4] != 'I' && s[4] != 'O' && s[4] != 'U') &&
        (s[5] == 'A' || s[5] == 'E' || s[5] == 'I' || s[5] == 'O' || s[5] == 'U') &&
        (s[6] != 'A' && s[6] != 'E' && s[6] != 'I' && s[6] != 'O' && s[6] != 'U') &&
        (s[7] != 'A' && s[7] != 'E' && s[7] != 'I' && s[7] != 'O' && s[7] != 'U')
    ) {
        return true;
    } else {
        return false;
    }
}

int main() {
    int t;
    cin >> t;
    while (t--) {
        string a;
        cin >> a;

        if (followsPattern(a)) {
            cout << "YES" << endl;
        } else {
            cout << "NO" << endl;
        }
    }

    return 0;
}
for i in range(int(input())):
    s=input()
    k='10101011'
    p=''
    for i in s:
        if i in "AEIOU":
            p+='0'
        else:
            p+='1'
    if p==k:
        print("YES")
    else:
        print("NO")

include <bits/stdc++.h>

using namespace std;
bool vowel(char x)
{
return (x == ‘A’ || x == ‘E’ || x == ‘I’ || x == ‘O’ || x == ‘U’);
}
int main() {
int t;
cin>>t;
while(t–){
string x;
cin>>x;
if (x.length() < 8) {
cout << “NO” << std::endl;
} else {
string y = “CODETOWN”;
int count = 0;
for (int i = 0; i < 8; ++i) {
if ((vowel(x[i]) && vowel(y[i])) || (!vowel(x[i]) && !vowel(y[i]))) {
count++;
}
}

        if (count < 8) {
            cout << "NO" << endl;
        } else {
            cout << "YES" <<endl;
        }
    }
}
return 0;

}