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?d+=a:c+=a;,b<a?c+=b:d+=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?d+=a:c+=a;,b<a?c+=b:d+=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?d+=a:c+=a;,b<a?c+=b:d+=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?d+=a:c+=a;,b<a?c+=b:d+=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?d+=a:c+=a;,b<a?c+=b:d+=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?d+=a:c+=a;,b<a?c+=b:d+=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?d+=a:c+=a;,b<a?c+=b:d+=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?d+=a:c+=a;,b<a?c+=b:d+=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?d+=a:c+=a;,b<a?c+=b:d+=b)}
      |                                  ^~~~~
main.c:1:34: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:52: 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?d+=a:c+=a;,b<a?c+=b:d+=b)}
      |                                                    ^~~~~~
main.c:1:52: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:52: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:52: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:59: 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?d+=a:c+=a;,b<a?c+=b:d+=b)}
      |                                                           ^
      |                                                           |
      |                                                           int
main.c:1:59: note: expected 'const char *' but argument is of type 'int'
main.c:1:86: 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?d+=a:c+=a;,b<a?c+=b:d+=b)}
      |                                                                                      ^
      |                                                                                      |
      |                                                                                      int
main.c:1:86: note: expected 'const char *' but argument is of type 'int'
main.c:1:105: 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?d+=a:c+=a;,b<a?c+=b:d+=b)}
      |                                                                                                         ^~
main.c:1:108: error: expected ')' before ';' token
    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?d+=a:c+=a;,b<a?c+=b:d+=b)}
      |                                                                     ~                                      ^
      |                                                                                                            )
main.c:1:124: error: expected expression before '}' token
    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?d+=a:c+=a;,b<a?c+=b:d+=b)}
      |                                                                                                                            ^