Problem nihonese
User CalebKow
Submission Time 2025-06-24 04:27:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

nihonese.cpp:7:23: error: ‘string’ does not name a type; did you mean ‘stdin’?
7 | bool check_word(const string& w) {
| ^~~~~~
| stdin
nihonese.cpp: In function ‘bool check_word(const int&)’:
nihonese.cpp:8:20: error: request for member ‘size’ in ‘w’, which is of non-class type ‘const int’
8 | int n = (int)w.size();
| ^~~~
nihonese.cpp:10:26: error: invalid types ‘const int[int]’ for array subscript
10 | if (!is_vowel(w[i]) && w[i] != 'n') {
| ^
nihonese.cpp:10:35: error: invalid types ‘const int[int]’ for array subscript
10 | if (!is_vowel(w[i]) && w[i] != 'n') {
| ^
nihonese.cpp:11:32: error: invalid types ‘const int[int]’ for array subscript
11 | if (!is_vowel(w[i+1])) return false;
| ^
nihonese.cpp