My code is not running giving some unknown error

ERROR:

/bin/run.sh: line 4: 18 Segmentation fault (core dumped) ./exe

hi @Jainish-Patel-1007094602980100 this is a segmentation fault, it arises when you try to access an out of bound memory location.

@Jainish-Patel-1007094602980100 you need to sort your array for binary search to work.

is these only limited to coding blocks IDE or any IDE throw these error like codechef IDE

@Jainish-Patel-1007094602980100 this is not a IDE specific error, segmentation fault can arise in any IDE

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.