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

Compile Error

segmenttree.cpp: In function ‘int main()’:
segmenttree.cpp:33:13: error: expected type-specifier before ‘mode’
33 | root = new mode(0,n-1);
| ^~~~
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)
| ^