MAX QUERY-1 Problem

Code link: https://ide.codingblocks.com/s/295447

i’m recieving runtime error.
Can u please help.

Declare a global
vector tree[400005]
Try this once and see if it works

1 Like

Yes it worked!
Thanxx

hit a like button if it worked …

1 Like

hi @Abhi_jeet007 have you re-opened this doubt?

No,it was resolved yesterday

@Abhi_jeet007 please mark it as resolved again

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.