Rightmost different bi


here is the question https://practice.geeksforgeeks.org/problems/rightmost-different-bit/0 can you tell what is wrong in the code ?

firstly input
t,m,n like cin>>t…

then in compare
check condition is also wrong

also if there are all bit similar u have to outout -1

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.