Problem contestcalc
User loverin
Submission Time 2023-04-17 09:40:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

contestcalc.cpp:2:2: error: invalid preprocessing directive #inlcude; did you mean #include?
2 | #inlcude <unordered_map>
| ^~~~~~~
| include
contestcalc.cpp: In function ‘int main()’:
contestcalc.cpp:8:7: error: ‘unordered_map’ is not a member of ‘std’
8 | std::unordered_map<std::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 | #inlcude <unordered_map>
contestcalc.cpp:8:32: error: expected primary-expression before ‘,’ token
8 | std::unordered_map<std::string, int> scores;
| ^
contestcalc.cpp:8:34: error: expected primary-expression before ‘int’
8 | std::unordered_map<std::string, int> scores;
|