Problem glottalstops
User paaaaaaaaaaaaaaaaaaa
Submission Time 2024-11-08 09:51:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

glottalstops.cpp: In function ‘int32_t main()’:
glottalstops.cpp:12:9: error: redeclaration of ‘long long int ans’
12 | int ans = 0;
| ^~~
glottalstops.cpp:10:9: note: ‘long long int ans’ previously declared here
10 | int ans;
| ^~~
glottalstops.cpp:14:30: error: expected ‘;’ before ‘)’ token
14 | for(int i = 0; i < n, i++){
| ^
| ;
glottalstops.cpp:16:23: error: expected ‘;’ before ‘char’
16 | x = s.length()
| ^
| ;
17 | char a[x];
| ~~~~
glottalstops.cpp:18:16: error: ‘a’ was not declared in this scope
18 | strcpy(a, s.c_str());
| ^
glottalstops.cpp:25:80: error: expected ‘)’ before ‘!’ token
25 | if(a[j] != 'a' && a[j] != 'e' && a[j] != 'i' && a[j] != 'o