Ultrafast problem

#include
using namespace std;
int main()
{
int t;
cin>>t;
while(t–)
{
int a,b,j=0;
cin>>a>>b;
int cnt[64]={0};
while(a>0||b>0)
{
int l1,l2;
l1=a%10;
l2=b%10;
if(l1!=l2)
cnt[j]=1;
j++;
//cout<<l1<<" "<<l2<<endl;
a=a/10;
b=b/10;
}

    for(int i=j-1;i>=0;i--)
    cout<<cnt[i];
}

}

why this is not accepted

Hey @rupeshjha90 the given input is string you cant treat it like a number

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.