https://www.codechef.com/viewsolution/30507731 (the link of the code)
https://www.codechef.com/MARCH20B/problems/ENGXOR (this is the problem)
and the code above is the logic I have written
I tried following the logic in the link :
and the 131071 number comes using this code
while submitting in codechef, I am getting a SIGSEGV error, what is the mistake and how do I fix it??