Problem conlang
User Pranav
Submission Time 2024-12-06 10:48:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

conlang.cpp: In function ‘int main()’:
conlang.cpp:13:42: error: could not convert ‘{"a", "e", "i", "o", "u", "y"}’ from ‘<brace-enclosed initializer list>’ to ‘std::set<char>’
13 | set <char> cars={"a","e","i","o","u","y"};
| ^
| |
| <brace-enclosed initializer list>
conlang.cpp:27:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
27 | if (why[j]=="C" && cars.count(one[j])==1){
| ^~~
conlang.cpp:31:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
31 | if (why[j]=="V" && cars.count(one[j])==0){
| ^~~