Răspuns:
#include<iostream>
#include<string.h>
using namespace std;
int main() {
char a[100];
string b = "";
cin >> a;
int n =strlen(a);
for (int i = 0; i < n; i++) {
if (strchr("aeiou", a[i]) != 0) {
b+=a[i];
b+='p';
b+=a[i];
}
else
b+=a[i];
}
cout << b;
}