Problem | countalp |
---|---|
User | dieunq1309 |
Submission Time | 2024-04-08 11:09:38 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
countalp.cpp: In function ‘int main()’:
countalp.cpp:10:8: error: expected ‘]’ before ‘[’ token
10 | map[n[i]]++;
| ^
| ]
countalp.cpp:10:12: error: expected initializer before ‘++’ token
10 | map[n[i]]++;
| ^~
countalp.cpp:10:12: error: expected ‘;’ before ‘++’ token
countalp.cpp:13:62: error: missing template arguments before ‘[’ token
13 | for (int i = 97; i < 123; i++) cout << char(i) << ' ' << map[char(i)] << endl;
| ^