Problem conlang
User boomphcoding
Submission Time 2026-02-02 21:18:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

conlang.cpp: In function ‘int main()’:
conlang.cpp:14:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
14 | if(st[i]=="C"){
| ^~~
conlang.cpp:15:32: error: request for member ‘find’ in ‘"bcdfghjklmnpqrstvwxz"’, which is of non-class type ‘const char [21]’
15 | if("bcdfghjklmnpqrstvwxz".find(s[i])!=string::npos){
| ^~~~
conlang.cpp:20:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
20 | if(st[i]=="V"){
| ^~~
conlang.cpp:21:18: error: request for member ‘find’ in ‘"aeiouy"’, which is of non-class type ‘const char [7]’
21 | if("aeiouy".find(s[i])!=string::npos) valid = true;
| ^~~~