MIN Query (segment Tree)

please tell me the run time error.it runs fine in other ide when i give testcase.
or provide some testcase where it runs incorrect.
https://online.codingblocks.com/app/player/59553/content/82768/4859/code-challenge

@manish55cu17,
Don’t declare array with variable size, declare them with a large constant integer, like int a[100005]={0};