Ultra fast Maths

Test cases arent executed
please check

#include<bits/stdc++.h>
using namespace std;
main()
{
int t;
cin>>t;
while(t!=0)
{
string st,st2;
cin.get();
getline(cin,st);
getline(cin,st2);
//cout<<strlen(st)<<endl;
for(int i=0;i<st.size();i++)
{
cout<<(st[i]^st2[i]);

    } 
    cout<<endl;
    t--;

}
return 0;

}

hey @deepna since st and st2 are string you cant use xor, please use if and else conditions.

when i m running the same code on coding blocks ide its giving me the correct o/p why is that so?

hey @deepna i tried the following input
110
011
and the following output was produced 48-64125 which is wrong, please make use of if else condition only.

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.