Problem letters
User hwy
Submission Time 2023-06-20 00:40:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

letters.cpp: In function ‘int main()’:
letters.cpp:13:12: error: invalid use of ‘auto’
13 | map<char, auto> m;
| ^~~~
letters.cpp:13:16: error: template argument 2 is invalid
13 | map<char, auto> m;
| ^
letters.cpp:13:16: error: template argument 4 is invalid
letters.cpp:15:12: error: invalid types ‘int[char]’ for array subscript
15 | m[char(i)] = 0ll;
| ^
letters.cpp:18:2: error: declaration of ‘auto temp’ has no initializer
18 | auto temp;
| ^~~~
letters.cpp:23:8: error: invalid types ‘int[char]’ for array subscript
23 | m[c]++;
| ^
letters.cpp:28:8: error: invalid types ‘int[char]’ for array subscript
28 | m[c] += m[char(temp)];
| ^
letters.cpp:32:15: error: invalid types ‘int[char]’ for array subscript
32 | cout << m['z'];
| ^