Problem countalp
User R9q5P8
Submission Time 2026-01-22 21:16:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

countalp.cpp: In function ‘int main()’:
countalp.cpp:6:7: error: expected identifier before numeric constant
6 | char[26] letters = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};
| ^~
countalp.cpp:6:7: error: expected ‘]’ before numeric constant
6 | char[26] letters = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};
| ^~
| ]
countalp.cpp:6:6: error: structured binding declaration cannot have type ‘char’
6 | char[26] letters = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};
| ^
countalp.cpp:6:6: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’
countalp.cpp:6:6: error: empty structured binding declaration
countalp.c