Unable to find mistake

for some test cases it is giving but for some wrong , i am unable to find mistake , please correct it

#include
using namespace std;
int main() {
int t;
cin>>t;
while(t > 0){
string s1;
string s2;
cin>>s1>>s2;
int len1 = s1.length();
int len2 = s2.length();
int dif;
if(len1 > len2){
dif = (len1 - len2);
for(int i=0;i<dif;i++){
s2 = ‘0’ + s2;
}
}
if(len2 > len1){
dif = (len2 - len1);
for(int i=0;i<dif;i++){
s1 = ‘0’ + s1;
}
}
int siz = max(len1,len2);
int arr[siz];
for(int i=0;i<siz;i++){
if(s1[i] == s2[i]){
arr[i] = 0;
}
else{
arr[i] = 1;
}
}

for(int i=0;i<siz;i++){
	cout<<arr[i];
}
t--;
}
return 0;

}

hi @vineethanv4,
newline after every test case missing

here;s the updated code https://ide.codingblocks.com/s/660392

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.