Not taking second string input

#include

using namespace std;
int main() {
int cases;
cin>>cases;

for(int i=1;i<=cases;i++)
{   string s1,s2,s3;
	
    getline(cin,s1);
    getline(cin,s2);

	int n=s1.length();

	for(int i=0;i<n;i++)
	{
		int a=s1[i];
	    int b=s2[i];
		if(a==b)
		{
			s3[i]=0;
		}
		else s3[i]=1;
	}

	for(int i=0;i<n;i++)
	cout<<s3[i];
	
}  
return 0;

}

hello @himanshu24

print output of each test case in seprate line

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.