I am getting the same error on allocating array of size 100001. It shows runtime error on codechef and program stops working in devc++
Here’s snippet of the code:
depends on your stack size in linux to increase your stack size to unlimited or a particular value use ulimit -s then it will work make sure value is > what ever array space you require plus your auto variables plus return frames etc blah …