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

Compile Error

letters.cpp: In function ‘int main()’:
letters.cpp:13:8: error: wrong number of template arguments (1, should be at least 2)
13 | map<ll> m;
| ^
In file included from /usr/include/c++/9/map:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:81,
from letters.cpp:1:
/usr/include/c++/9/bits/stl_map.h:100:11: note: provided for ‘template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map’
100 | class map
| ^~~
letters.cpp:15:12: error: invalid types ‘int[char]’ for array subscript
15 | m[char(i)] = 0;
| ^
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:28:25: error: invalid types ‘int[char]’ for array subscript