Problem lis
User Xiaoyang
Submission Time 2024-12-15 02:04:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis.cpp:1:4: error: expected unqualified-id before ‘return’
1 | return 0;
| ^~~~~~
lis.cpp:2:3: error: expected declaration before ‘}’ token
2 | }
| ^
lis.cpp:3:3: error: expected unqualified-id before ‘else’
3 | else if (l <= S && r >= E){
| ^~~~
lis.cpp:6:9: error: expected constructor, destructor, or type conversion before ‘;’ token
6 | prop();
| ^
lis.cpp:7:3: error: expected unqualified-id before ‘return’
7 | return max(left->qry(l,r), right->qry(l,r));
| ^~~~~~
lis.cpp:8:2: error: expected declaration before ‘}’ token
8 | }
| ^
lis.cpp: In function ‘void upd(long long int, long long int)’:
lis.cpp:10:7: error: ‘S’ was not declared in this scope
10 | if (S == E){
| ^
lis.cpp:10:12: error: ‘E’ was not declared in this scope
10 | if (S == E){
| ^
lis.cpp:11:4: error: ‘va