| Problem | twochoices |
|---|---|
| User | dvd |
| Submission Time | 2025-05-04 13:58:59 |
| 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:18: error: overloaded function with no contextual type information
18 | if (data.find(num_str) != data.end()) data[num_str] += 1;
| ^~~~
twochoices.cpp:18:40: error: overloaded function with no contextual type information
18 | if (data.find(num_str) != dat