Problem | contestcalc |
---|---|
User | StormyGood |
Submission Time | 2024-01-25 20:52:49 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
contestcalc.cpp: In function ‘int main()’:
contestcalc.cpp:10:20: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map’
10 | map<"Bob",12312313> named;
| ^
contestcalc.cpp:10:20: note: expected a type, got ‘"Bob"’
contestcalc.cpp:10:20: error: type/value mismatch at argument 2 in template parameter list for ‘template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map’
contestcalc.cpp:10:20: note: expected a type, got ‘12312313’
contestcalc.cpp:10:20: error: template argument 3 is invalid
contestcalc.cpp:10:20: error: template argument 4 is invalid
contestcalc.cpp:14:13: error: invalid types ‘int[int]’ for array subscript
14 | named[name]=score;
| ^
contestcalc.cpp:22:13: error: missing template arguments before ‘[’ token
22 | sum += map[d];
|