#include <stdio.h>

int main(void) {

int t;

int a,b;

int a1,a2,b1,b2;

char c;

scanf("%d",&t);

c = getchar();

for(int i = 0; i<t ; i++)

{

scanf("%d",&a);

c = getchar();

scanf("%d",&b);

c = getchar();

```
a1 = a/10;
a2 = a%10;
b1 = b/10;
b2 = b%10;
if(a2>b1 && b2>a1 )
{
if(a2>b2)
{
printf("%d\n", (a2*10 + a1*10 + b1 +b2) );
}
else
{
printf("%d\n",(b2*10 + b1*10 + a1 + a2));
}
}
else if(a2>b1)
{
printf("%d\n",(a2*10 + a1*10 + b1 +b2));
}
else if(b2>a1)
{
printf("%d\n",(b2*10 + b1*10 + a1 + a2));
}
else
{
printf("%d\n",(a1*10 + b1*10 + a2 +b2));
}
}
```

}

i don’t get what mistake i did.