Problem ccs
User silvspider
Submission Time 2024-07-06 10:21:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ccs.cpp: In function ‘int main()’:
ccs.cpp:14:4: error: ‘asleep_cats’ was not declared in this scope
14 | asleep_cats.erase(x);
| ^~~~~~~~~~~
ccs.cpp:16:9: error: ‘x’ was not declared in this scope
16 | cin>>x;
| ^
ccs.cpp:17:4: error: ‘asleep_cats’ was not declared in this scope
17 | asleep_cats.insert(x);
| ^~~~~~~~~~~
ccs.cpp:19:9: error: ‘x’ was not declared in this scope
19 | cin>>x>>y;
| ^
ccs.cpp:19:12: error: ‘y’ was not declared in this scope
19 | cin>>x>>y;
| ^
ccs.cpp:20:8: error: ‘asleep_cats’ was not declared in this scope
20 | if(*asleep_cats.lower_bound(x)){
| ^~~~~~~~~~~
ccs.cpp:23:5: error: expected ‘}’ before ‘else’
23 | }else{
| ^~~~
ccs.cpp:20:35: note: to match this ‘{’
20 | if(*asleep_cats.lower_bound(x)){
|