Language: C

c,d,s="%d %d\n";main(n,a,b){for(;scanf("%d ",n),n;printf(s,c,d))for(c=d=0;n--;){scanf(s,a,b);(a>=b?c:d)+=a;(b>=a?d:c)+=b;}}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | c,d,s="%d %d\n";main(n,a,b){for(;scanf("%d ",n),n;printf(s,c,d))for(c=d=0;n--;){scanf(s,a,b);(a>=b?c:d)+=a;(b>=a?d:c)+=b;}}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'c' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'd' [-Wimplicit-int]
    1 | c,d,s="%d %d\n";main(n,a,b){for(;scanf("%d ",n),n;printf(s,c,d))for(c=d=0;n--;){scanf(s,a,b);(a>=b?c:d)+=a;(b>=a?d:c)+=b;}}
      |   ^
main.c:1:5: error: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
    1 | c,d,s="%d %d\n";main(n,a,b){for(;scanf("%d ",n),n;printf(s,c,d))for(c=d=0;n--;){scanf(s,a,b);(a>=b?c:d)+=a;(b>=a?d:c)+=b;}}
      |     ^
main.c:1:7: error: initialization of 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    1 | c,d,s="%d %d\n";main(n,a,b){for(;scanf("%d ",n),n;printf(s,c,d))for(c=d=0;n--;){scanf(s,a,b);(a>=b?c:d)+=a;(b>=a?d:c)+=b;}}
      |       ^~~~~~~~~
main.c:1:7: error: initializer element is not computable at load time
main.c:1:17: error: return type defaults to 'int' [-Wimplicit-int]
    1 | c,d,s="%d %d\n";main(n,a,b){for(;scanf("%d ",n),n;printf(s,c,d))for(c=d=0;n--;){scanf(s,a,b);(a>=b?c:d)+=a;(b>=a?d:c)+=b;}}
      |                 ^~~~
main.c: In function 'main':
main.c:1:17: error: type of 'n' defaults to 'int' [-Wimplicit-int]
main.c:1:17: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:17: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:34: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | c,d,s="%d %d\n";main(n,a,b){for(;scanf("%d ",n),n;printf(s,c,d))for(c=d=0;n--;){scanf(s,a,b);(a>=b?c:d)+=a;(b>=a?d:c)+=b;}}
      |                                  ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | c,d,s="%d %d\n";main(n,a,b){for(;scanf("%d ",n),n;printf(s,c,d))for(c=d=0;n--;){scanf(s,a,b);(a>=b?c:d)+=a;(b>=a?d:c)+=b;}}
main.c:1:34: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | c,d,s="%d %d\n";main(n,a,b){for(;scanf("%d ",n),n;printf(s,c,d))for(c=d=0;n--;){scanf(s,a,b);(a>=b?c:d)+=a;(b>=a?d:c)+=b;}}
      |                                  ^~~~~
main.c:1:34: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:51: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | c,d,s="%d %d\n";main(n,a,b){for(;scanf("%d ",n),n;printf(s,c,d))for(c=d=0;n--;){scanf(s,a,b);(a>=b?c:d)+=a;(b>=a?d:c)+=b;}}
      |                                                   ^~~~~~
main.c:1:51: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:51: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:51: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:58: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
    1 | c,d,s="%d %d\n";main(n,a,b){for(;scanf("%d ",n),n;printf(s,c,d))for(c=d=0;n--;){scanf(s,a,b);(a>=b?c:d)+=a;(b>=a?d:c)+=b;}}
      |                                                          ^
      |                                                          |
      |                                                          int
main.c:1:58: note: expected 'const char *' but argument is of type 'int'
main.c:1:87: error: passing argument 1 of 'scanf' makes pointer from integer without a cast [-Wint-conversion]
    1 | c,d,s="%d %d\n";main(n,a,b){for(;scanf("%d ",n),n;printf(s,c,d))for(c=d=0;n--;){scanf(s,a,b);(a>=b?c:d)+=a;(b>=a?d:c)+=b;}}
      |                                                                                       ^
      |                                                                                       |
      |                                                                                       int
main.c:1:87: note: expected 'const char *' but argument is of type 'int'
main.c:1:104: error: lvalue required as left operand of assignment
    1 | c,d,s="%d %d\n";main(n,a,b){for(;scanf("%d ",n),n;printf(s,c,d))for(c=d=0;n--;){scanf(s,a,b);(a>=b?c:d)+=a;(b>=a?d:c)+=b;}}
      |                                                                                                        ^~
main.c:1:118: error: lvalue required as left operand of assignment
    1 | c,d,s="%d %d\n";main(n,a,b){for(;scanf("%d ",n),n;printf(s,c,d))for(c=d=0;n--;){scanf(s,a,b);(a>=b?c:d)+=a;(b>=a?d:c)+=b;}}
      |                                                                                                                      ^~