Problem | contestcalc |
---|---|
User | eliasxyz |
Submission Time | 2025-05-23 00:02:53 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
contestcalc.cpp: In function ‘int main()’:
contestcalc.cpp:7:2: error: ‘unordered_map’ was not declared in this scope
7 | unordered_map<string, int> scores;
| ^~~~~~~~~~~~~
contestcalc.cpp:2:1: note: ‘std::unordered_map’ is defined in header ‘<unordered_map>’; did you forget to ‘#include <unordered_map>’?
1 | #include <iostream>
+++ |+#include <unordered_map>
2 | using namespace std;
contestcalc.cpp:7:22: error: expected primary-expression before ‘,’ token
7 | unordered_map<string, int> scores;
| ^
contestcalc.cpp:7:24: error: expected primary-expression before ‘int’
7 | unordered_map<string, int> scores;
| ^~~
contestcalc.cpp:12:3: error: ‘scores’ was not declared in this scope; did you mean ‘score’?
12 | scores[name]=score;
| ^~~~~~
| score
contestcalc.cpp:20:6: error: ‘scores’ was