Why am i getting segmentation error?

Please check my code: https://ide.codingblocks.com/s/291066

It is giving me - /bin/run.sh: line 4: 18 Segmentation fault error in coding blocks ide. But it is working on other IDEs.

@HemantKumar,
Don’t use memset specially for Boolean. Just use a simple for loop.

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.