Problem countalp
User limmingyao21
Submission Time 2023-10-23 18:14:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

countalp.cpp: In function ‘int main()’:
countalp.cpp:14:19: error: ‘letter’ was not declared in this scope; did you mean ‘letters’?
14 | frequency[letter - 'a']++;
| ^~~~~~
| letters
countalp.cpp: At global scope:
countalp.cpp:18:5: error: expected unqualified-id before ‘for’
18 | for (int i = 0; i < 26; i++) {
| ^~~
countalp.cpp:18:21: error: ‘i’ does not name a type
18 | for (int i = 0; i < 26; i++) {
| ^
countalp.cpp:18:29: error: ‘i’ does not name a type
18 | for (int i = 0; i < 26; i++) {
| ^
countalp.cpp:22:5: error: expected unqualified-id before ‘return’
22 | return 0;
| ^~~~~~
countalp.cpp:23:1: error: expected declaration before ‘}’ token
23 | }
| ^