Problem | contestcalc |
---|---|
User | JcYong |
Submission Time | 2024-06-19 15:18:56 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
contestcalc.cpp: In function ‘int main()’:
contestcalc.cpp:14:10: error: no match for ‘operator[]’ (operand types are ‘int’ and ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’})
14 | score[Cname] = score;
| ^
contestcalc.cpp:15:15: error: no match for ‘operator[]’ (operand types are ‘int’ and ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’})
15 | a += score[Cname];
| ^