Problem deforestation
User ethantanaki
Submission Time 2026-11-18 16:43:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

deforestation.cpp: In function ‘int32_t main()’:
deforestation.cpp:20:24: error: expected ‘;’ before ‘if’
20 | mid2=(low2+high2)/2
| ^
| ;
21 | if(c[low2]<=i) low2=mid2+1;
| ~~
deforestation.cpp:22:5: error: ‘else’ without a previous ‘if’
22 | else high2=mid2-1;
| ^~~~