Why my code is showing segment fault ??
Prateek loves candy
It is still showing segment fault

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