Segmentation Fault
I can see that your submission was accepted.
So mark the doubt as resolved if it is so.
You are making an integer array of size > 10^5. This is causing segmentation fault.
The maximum size integer array you can make withing the main of of order 10^5.
Didn’t work 
Still getting segmentation fault
Share your updated code.
It is the same link