Problem countalp
User Qxhb3
Submission Time 2023-04-08 22:55:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

countalp.cpp: In function ‘int main()’:
countalp.cpp:9:18: error: expected ‘;’ before ‘int’
9 | cin >> n >> str
| ^
| ;
10 |
11 | int freq[26] = {0}
| ~~~
countalp.cpp:13:8: error: ‘i’ was not declared in this scope
13 | for (i = 0; i < N; i++) {
| ^
countalp.cpp:13:19: error: ‘N’ was not declared in this scope
13 | for (i = 0; i < N; i++) {
| ^
countalp.cpp:16:5: error: expected ‘,’ or ‘;’ before ‘freq’
16 | freq[index] ++;
| ^~~~
countalp.cpp:19:8: error: ‘i’ was not declared in this scope
19 | for (i = 0; i < 26; i++) {
| ^
countalp.cpp:21:20: error: ‘freq’ was not declared in this scope; did you mean ‘free’?
21 | cout << " " << freq[i] << endl;
| ^~~~
| free<