Problem ccs
User gordonlu
Submission Time 2023-11-23 12:26:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ccs.cpp: In function ‘int main()’:
ccs.cpp:23:5: error: ‘unordered_set’ was not declared in this scope
23 | unordered_set<int> sleepedCats;
| ^~~~~~~~~~~~~
ccs.cpp:4:1: note: ‘std::unordered_set’ is defined in header ‘<unordered_set>’; did you forget to ‘#include <unordered_set>’?
3 | #include <bitset>
+++ |+#include <unordered_set>
4 |
ccs.cpp:23:19: error: expected primary-expression before ‘int’
23 | unordered_set<int> sleepedCats;
| ^~~
ccs.cpp:31:13: error: the value of ‘N’ is not usable in a constant expression
31 | bitset<N> sleepedCats;
| ^
ccs.cpp:27:9: note: ‘int N’ is not const
27 | int N, Q;
| ^
ccs.cpp:31:13: note: in template argument for type ‘long unsigned int’
31 | bitset<N> sleepedCats;
| ^
ccs.cpp:33:22: error: ‘commands’ was not dec