Problem segmenttree
User Reverberate
Submission Time 2023-06-02 14:42:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree.cpp: In constructor ‘node::node(long long int, long long int, long long int*)’:
segmenttree.cpp:8:38: error: expected identifier before ‘{’ token
8 | node(int S_, int E_, int arr[]): {
| ^
segmenttree.cpp:9:10: error: expression cannot be used as a function
9 | start(S_),end(E_),mid((start+end)/2)
| ^
segmenttree.cpp:9:18: error: expression cannot be used as a function
9 | start(S_),end(E_),mid((start+end)/2)
| ^
segmenttree.cpp:9:37: error: expression cannot be used as a function
9 | start(S_),end(E_),mid((start+end)/2)
| ^
segmenttree.cpp:13:9: error: ‘else’ without a previous ‘if’
13 | else{
| ^~~~