Can anyone point out the problem with my code or logic?

code saved on ide. #84800

@Bumblebee hey himalaya first of all use cin>>s1; and cin>>s2;
this will pass one test case of the given problem
for eg =
3
10101010 11111111
10000000 00000001
1010101 0101010
your output
1111111
expected output
01010101
10000001
1111111

@Bumblebee try to modify for the suggested case.