One test case is not passing can you plzz tell the rectification in the code required

#include
#include
using namespace std;
int main() {
int t;
cin>>t;
for(int i=0;i<t;i++)
{
char str1[100];
cin>>str1;
char str2[100];
cin>>str2;
int n=strlen(str1);
char answer[n];
for(int i=0;i<n;i++)
{
if(str1[i]==str2[i])
{
answer[i]=‘0’;
}
else
{
answer[i]=‘1’;
}
}
cout<<answer<<endl;
}

}

@Bhavit_Singla
Check for this case:
1
0000 0011

Expected Output:
0011

If your code gives the correct output for this then please save your code on ide.codingblocks.com and share its link.

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.