Plzz check my code ..why my 2nd test case is wrong?

#include
#include
using namespace std;

int main() {
string str1,str2,str3;
int t;
cin>>t;
while(t–){
cin>>str1>>str2;
int x=str1.length();
for(int i=0;i<x;i++){
if(str1[i]!=str2[i]){
str3=str3+‘1’;
}
else{
str3 =str3+‘0’;
}

}
for(int i=0;i<x;i++){
	cout<<str3[i];
}
}

return 0;

}

You need to print answer of each test case in new line.
Also in your test case 2, str3 would still be holding values of test case 1, so please clear the string in every case

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.