Prateek loves candy


Why my code is showing segment fault ??

hello @ashwani225
take value of n = 1000 001

It is still showing segment fault

image
it is working fine

r u sure u are using n=1000001

Ok but don’t know why when I was compiling on other compiler it was showing segment fault

may be some issue with the judge