Ultra-Fast-Mathematicians (How to add the beginning zero to the result)

#include
using namespace std;

int main() {
int t; cin>>t;
while(t–)
{
int n1, n2;
cin >> n1 >> n2;
int n3 = n1^ n2;
cout << n3 << endl;
}
return 0;
}

hey @meg.2198, why do you want to add zero to beginning.

You approach in not correct here. Input is in binary form and you need to calculate x-or by processing each bit. But here you are the number in decimal form.

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.