| Problem | littlejohnny1 |
|---|---|
| User | shenshiqi |
| Submission Time | 2025-12-15 21:50:07 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
littlejohnny1.cpp: In function ‘int main()’:
littlejohnny1.cpp:16:42: error: cannot convert ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘std::map<std::__cxx11::basic_string<char>, long long int>::mapped_type’ {aka ‘long long int’} in assignment
16 | if (!score.count(name)) score[name] = s;
| ^
| |
| std::string {aka std::__cxx11::basic_string<char>}
littlejohnny1.cpp:17:21: error: no match for ‘operator+=’ (operand types are ‘std::map<std::__cxx11::basic_string<char>, long long int>::mapped_type’ {aka ‘long long int’} and ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’})
17 | else score[name] += s;