Ultra fast mathematicians

#include
#include
using namespace std;
int main(){
int t;
cin>>t;
char a[100];
char b[100];
for(int i=0;i<t;i++){
cin>>a;
cin>>b;
int n=strlen(a);
for(int i=0;i<n;i++){
if(a[i]==b[i]){
cout<<“0”;
}
else
cout<<“1”;
}
}

}
why it is not passing 1 test case?

Hi @tishya_goyal

You are missing a cout<<"\n"; after the for loop in each test case.

Hope it Helps.

1 Like

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.