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

Compile Error

ccs.cpp: In function ‘int main()’:
ccs.cpp:22:37: error: expected ‘;’ before ‘)’ token
22 | *asleep_cats.lower_bound(x) <= y){
| ^
| ;
ccs.cpp:24:5: error: expected ‘}’ before ‘else’
24 | }else{
| ^~~~
ccs.cpp:21:35: note: to match this ‘{’
21 | if(*asleep_cats.lower_bound(x)){
| ^
ccs.cpp:25:9: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘const char [5]’)
25 | cout>>"YES\n"
| ~~~~^~~~~~~~~
| | |
| | const char [5]
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:45,
from ccs.cpp:1:
/usr/include/c++/9/cstddef:140:5: note: candidate: ‘template<class _Int