| Problem | twochoices |
|---|---|
| User | dvd |
| Submission Time | 2025-05-04 13:53:44 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
twochoices.cpp: In function ‘int main()’:
twochoices.cpp:14:5: error: ‘map’ was not declared in this scope
14 | map<string, int> data;
| ^~~
twochoices.cpp:5:1: note: ‘std::map’ is defined in header ‘<map>’; did you forget to ‘#include <map>’?
4 | #include <bitset>
+++ |+#include <map>
5 |
twochoices.cpp:14:15: error: expected primary-expression before ‘,’ token
14 | map<string, int> data;
| ^
twochoices.cpp:14:17: error: expected primary-expression before ‘int’
14 | map<string, int> data;
| ^~~
twochoices.cpp:18:13: error: no match for ‘operator[]’ (operand types are ‘<unresolved overloaded function type>’ and ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’})
18 | data[num_str] += 1;
| ^
twochoices.cpp:23:24: error: unable to deduce ‘auto&&’ from ‘std::data’