I don’t know why all test cases are not correct. Please point out mistakes in my code.
How to solve it?
#include
#include
using namespace std;
int main(){
int t;
cin >> t;
for(int i=0; i<t; i++){
string a, b;
cin >> a >> b;
for(int j=0; j<a.length(); j++){
cout << (a[j]^b[j]);
}
}
return 0;
}
print a newline character after every test case
Thank You so much!!!
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.
Sure…