Xor Sum-1 Three test cases have failed.Please tell me what's wrong in my approach

Code:
https://hack.codingblocks.com/submission/1379956
Link:
https://hack.codingblocks.com/contests/c/452/562

Copy your code on ide ,save it and then share the link of it.