Why am I getting SIGSEGV run time error?
program for turbo sort
http://www.codechef.com/viewsolution/6618843
Please help!
SIGSEGV error usually occurs when you try to access an array index which is out of bound . Check your program again to find where it is accessing that index (which is out of bound).
Make all the arrays global it will make the program run. After making arrays global its capacity increases upto 10^7 elements. If you know vector you can use it in place of array in the main function as it can take 10^6 elements. Also see your data type as per to the constraints.