Problem countalp
User CalebKow
Submission Time 2025-06-24 02:39:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

countalp.cpp: In function ‘int main()’:
countalp.cpp:10:2: error: expected ‘,’ or ‘;’ before ‘vector’
10 | vector<int> letter_count = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
| ^~~~~~
countalp.cpp:16:3: error: ‘letter_count’ was not declared in this scope
16 | letter_count[index] += 1;
| ^~~~~~~~~~~~
countalp.cpp:21:34: error: ‘letter_count’ was not declared in this scope
21 | cout << string() + c << " " << letter_count[alpha_index];
| ^~~~~~~~~~~~