In ques XOR range, why my code is showing segmentation fault?

https://ide.codingblocks.com/s/249798

@sarthakj2099
It’s a normal question of an array. why are you using linked list?
Constraints are small, you can use to nested loop of compute XOR of all possible ranges.

Sorry I quoted the wrong question, question name is maximum xor subarray