Wierd Error (Stacks)

Hi my code on compilation is giving the error
/bin/run.sh: line 4: 18 Segmentation fault (core dumped) ./exe
The code was working earlier and even passed a test case on submission but now it is giving this error.
Can you tell what is the problem.

@Codecracaker532 segmentation fault happen when you try to access position out of bound,
so check clearly that you are not accessing out of bound array position

In your code you are defining an array of size 10^8+1 , which is very large ,
try defining a smaller array upto 10^6 size.