Problem ccs
User mingging1748
Submission Time 2024-11-06 18:50:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ccs.cpp: In function ‘int main()’:
ccs.cpp:5:5: error: ‘cin’ was not declared in this scope
5 | cin >> n >> q;
| ^~~
ccs.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
ccs.cpp:7:5: error: ‘vector’ was not declared in this scope
7 | vector<bool> awake(n, true);
| ^~~~~~
ccs.cpp:1:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
+++ |+#include <vector>
1 | using namespace std;
ccs.cpp:7:12: error: expected primary-expression before ‘bool’
7 | vector<bool> awake(n, true);
| ^~~~
ccs.cpp:10:9: error: ‘string’ was not declared in this scope
10 | string event;
| ^~~~~~
ccs.cpp:1:1: note: ‘std::string’ is defined in header ‘<stri