| Problem | contestcalc |
|---|---|
| User | Ene |
| Submission Time | 2026-11-18 11:25:15 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
contestcalc.cpp: In function ‘int main()’:
contestcalc.cpp:6:15: error: wrong number of template arguments (1, should be at least 2)
6 | map<string>k;
| ^
In file included from /usr/include/c++/9/map:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:81,
from contestcalc.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
| ^~~
contestcalc.cpp:10:13: error: conflicting declaration ‘auto b’
10 | map[b]=c;
| ^
contestcalc.cpp:8:16: note: previous declaration as ‘std::string b’
8 | string b; int c;
| ^
contestcalc.cpp:15:15: error: missing template arguments before ‘[’ token
15 | t+=map[c];
| ^