Problem segmenttree
User DaPeter
Submission Time 2025-12-03 14:43:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree.cpp: In function ‘int main()’:
segmenttree.cpp:37:8: error: expected primary-expression before ‘int’
37 | else(int x,y;cin>>x>>y;cout<<root->qry(x,y)
| ^~~
segmenttree.cpp:37:8: error: expected ‘)’ before ‘int’
37 | else(int x,y;cin>>x>>y;cout<<root->qry(x,y)
| ~^~~
| )
segmenttree.cpp:37:21: error: ‘x’ was not declared in this scope
37 | else(int x,y;cin>>x>>y;cout<<root->qry(x,y)
| ^
segmenttree.cpp:37:24: error: ‘y’ was not declared in this scope
37 | else(int x,y;cin>>x>>y;cout<<root->qry(x,y)
| ^