What is wrong with my code?

https://practice.geeksforgeeks.org/problems/find-missing-and-repeating2512/1/
^^Problem link
//https://ide.codingblocks.com/s/667110
^^My code

hi @devyanshbansal123, dont over complex the problem ive coded this solution and commented in detail please do a dry run and remember the trick i used(xor one) its helpful in many places

1 Like

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.