Problem | nihonese |
---|---|
User | user123 |
Submission Time | 2023-11-28 19:56:27 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
nihonese.cpp:9:16: error: ‘bool vow(char)’ redeclared as different kind of entity
9 | bool vow(char c) { return c=='a' || c=='e' || c=='i' || c=='o' || c=='u'; }
| ^
nihonese.cpp:7:11: note: previous declaration ‘std::set<char> vow’
7 | set<char> vow;
| ^~~
nihonese.cpp: In function ‘bool check(std::string)’:
nihonese.cpp:14:24: error: no match for call to ‘(std::set<char>) (__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&)’
14 | if (!vow(str[a]) && str[a]!='n')
| ^
nihonese.cpp:16:30: error: no match for call to ‘(std::set<char>) (__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&)’
16 | if (!vow(str[a+1])) return false;
| ^