Problem sumsumdigit
User Yinnotayl64
Submission Time 2026-11-02 11:25:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumsumdigit.cpp: In function ‘int main()’:
sumsumdigit.cpp:19:17: error: wrong number of template arguments (1, should be at least 2)
19 | map<int: int> table = {
| ^
In file included from /usr/include/c++/9/map:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:81,
from sumsumdigit.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
| ^~~
sumsumdigit.cpp:20:3: error: expected ‘}’ before ‘:’ token
20 | 10: 46
| ^
sumsumdigit.cpp:19:27: note: to match this ‘{’
19 | map<int: int> table = {
| ^
sumsumdigit.cpp:20:3: error: expected ‘,’ or ‘;’ before ‘:’ token
20 | 10: 46
| ^
sumsumdigit.cpp: At global scope:
sumsumdigit.cpp:29:12: error: ‘cin’ does not