1 testcase failed

#include
#include
using namespace std;
int main(){

string str1,str2;
int t;
cin>>t;
cin>>str1>>str2;

while(t--){
int i=0;
int j=0;
while(i<str1.length() and j<str2.length()){
	if(str1[i]!=str2[j]){
		cout<<1;
	}
	else{
		cout<<0;
	}
	i++;
	j++;
}

}

}

Your code is not readable, You can share this code using ide.codingblocks.com

  • A special url will be generated, share that url with me

check now ->

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.