Problem ccs
User dzuizz
Submission Time 2023-06-15 13:19:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ccs.cpp: In function ‘int main()’:
ccs.cpp:10:5: error: ‘unordered_map’ was not declared in this scope
10 | unordered_map<int, int> m;
| ^~~~~~~~~~~~~
ccs.cpp:3:1: note: ‘std::unordered_map’ is defined in header ‘<unordered_map>’; did you forget to ‘#include <unordered_map>’?
2 | #include<map>
+++ |+#include <unordered_map>
3 | using namespace std;
ccs.cpp:10:19: error: expected primary-expression before ‘int’
10 | unordered_map<int, int> m;
| ^~~
ccs.cpp:16:27: error: ‘m’ was not declared in this scope
16 | if (s == "SLEEP") m[x] = 1;
| ^
ccs.cpp:17:31: error: ‘m’ was not declared in this scope
17 | else if (s == "WAKE") m[x] = 0;
| ^
ccs.cpp:22:27: error: ‘m’ was not declared in this scope
22 | for (auto p : m) {
|