Using long int works fine, since the sum of two 9-digit numbers is less than 2000000000 which fits in a long int, and in this case the sum is not even calculated.
So does that explains why my program gets a WA either?
int main() {
int a, b, c;
int i, count, carry;
do {
scanf("%d %d", &a, &b ...