Problem dynamicdiameter
User Pan
Submission Time 2024-08-19 23:38:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

dynamicdiameter.cpp: In member function ‘pi node::query(int, int)’:
dynamicdiameter.cpp:88:14: error: expected ‘;’ before ‘if’
88 | propogate()
| ^
| ;
89 | if(E<=m) return l->query(S,E);
| ~~
dynamicdiameter.cpp:90:3: error: ‘else’ without a previous ‘if’
90 | else if(S>m) return r->query(S,E);
| ^~~~