Ultra fast mathematics question

https://ide.codingblocks.com/s/85490.
sir pl tell the mistake in the code

hey @ayush15goel, getline reads string until it find delimiter which is new line by default here.In your code both the input are in same line so it is taking 10111 10000 as s1 only.
You just make a small change, use cin instead of getline to read the string.

sir i have corrected it but it is showing wrong answer in first test case.Pl tell the mistake

Hey @ayush15goel, share the corrected code.

hey @ayush15goel, there are multiple testcases in the question, you code is printing answer for all those in the same line, it should be next line.
I have made the change and mentioned them as comment. https://ide.codingblocks.com/s/86137

hey can we do this problem by using xor operator by converting each string to corresponding integer and doing xor between the same??

Can anyone please check my code.


it is giving the right o/p on custom inputs but failing the test cases.