Doubt in Ultra Fast Mathematician

The output is not getting visible on the output screen.
Here is the link of the code given below.

hey @ratulhans, getline keeps read inputs till it get new line. As inputs are in same line,you should cin to get the output.

Now I’ve made the necessary change as directed by you but still only one out of two test cases is being passed.
#include
using namespace std;
int main ()
{
char a[100],b[100];
int n,i,j,c[100];
cin>>n;
for(i=1;i<=n;i++)
{
cin>>a;
cin>>b;
for(j=0;a[j]!=’\0’;j++)
{
if(a[j]==b[j])
{
c[j]=0;
cout<<c[j];
}
else
{
c[j]=1;
cout<<c[j];
}
}
}
}

hey @ratulhans, you forgot to add endl after each testcase.

But there is no use of endl since I’m using cin

hey @ratulhans, I am taking about endl after one testcase is over, Share me your code saved in coding blocks ide, I will debug that for you.

hey @ratulhans, it passed all the testcase, just added endl https://ide.codingblocks.com/s/111859

Now it’s working fine.Thanks alot

hey @ratulhans , if your query is resolved. Please mark this doubt as resolved and rate me on the basis of your experience.
rating option will appear when to mark this doubt as resolved