#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
int testvogal(char p);
int main(void) {
char regex[] = "algoritmo";
int t = 0;
char final[999];
for (int i
=0;i
<strlen(regex
);i
++) {
if (testvogal(regex[i]) == 1){
final[t] = regex[i];
t++;
}
}
}
int testvogal(char p){
char *vogal = "aeiou";
for (int j
=0;j
<strlen(vogal
);j
++) {
if (p == vogal[j])
return 0;
}
return 1;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KI2luY2x1ZGUgPHN0cmluZy5oPgojaW5jbHVkZSA8Y3R5cGUuaD4KCmludCB0ZXN0dm9nYWwoY2hhciBwKTsKaW50IG1haW4odm9pZCkgewoJY2hhciByZWdleFtdID0gImFsZ29yaXRtbyI7CglpbnQgdCA9IDA7CgljaGFyIGZpbmFsWzk5OV07Cglmb3IgKGludCBpPTA7aTxzdHJsZW4ocmVnZXgpO2krKykKCXsKICAgICAgICBpZiAodGVzdHZvZ2FsKHJlZ2V4W2ldKSA9PSAxKXsKICAgICAgICAJZmluYWxbdF0gPSByZWdleFtpXTsKICAgICAgICAJdCsrOwogICAgICAgIH0KCX0KCXByaW50ZihmaW5hbCk7Cn0KCmludCB0ZXN0dm9nYWwoY2hhciBwKXsKCWNoYXIgKnZvZ2FsID0gImFlaW91IjsKCWZvciAoaW50IGo9MDtqPHN0cmxlbih2b2dhbCk7aisrKQoJewoJCWlmIChwID09IHZvZ2FsW2pdKQoJCSAgICByZXR1cm4gMDsKCX0KCXJldHVybiAxOwp9Cg==