Problem contestcalc
User hwy
Submission Time 2023-06-07 13:04:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

contestcalc.cpp: In function ‘int main()’:
contestcalc.cpp:19:7: error: no match for ‘operator+=’ (operand types are ‘int’ and ‘std::map<std::__cxx11::basic_string<char>, int>::iterator’ {aka ‘std::_Rb_tree_iterator<std::pair<const std::__cxx11::basic_string<char>, int> >’})
19 | sum += map.find(name2);
| ~~~~^~~~~~~~~~~~~~~~~~