Problem ccs
User huangchengcheng
Submission Time 2026-07-16 16:54:09
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; did you mean ‘std::cin’?
5 | cin >> n >>q;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from ccs.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
ccs.cpp:7:5: error: ‘set’ was not declared in this scope
7 | set<int> sleep;
| ^~~
ccs.cpp:7:5: note: suggested alternatives:
In file included from /usr/include/c++/9/set:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:87,
from ccs.cpp:1:
/usr/include/c++/9/bits/stl_set.h:94:11: note: ‘std::set’
94 | class set
| ^~~
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h