Counting sort algorithm

my code is correct but it is showing /bin/run.sh: line 4: 18 Segmentation fault (core dumped) ./exe
here is my code https://ide.codingblocks.com/s/283595

@jatinupadhyay786 there may be some issue with online ide. directly subimtting your code will pass all test case or try running in any other ide for custom test case.

bhai nahi horaha submit

https://ide.codingblocks.com/s/283620 i have updated your code look at line 4 and 30 for changes.

bhai aap run karke toh dekho output he ni aaraha

all test case pass ho rha seedha submit kro run nhi.

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.