Language: C

a,z,x,i,j;main(t){for(scanf("%d",&t);t--;)for(a=z=0;scanf("%d%d",&x,&i);--x;printf("%d %d\n",-z,a))scanf("%d",&j),i-=j,a=i>a?i:a,z=i<z?i:z,i=j;exit(0);}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a,z,x,i,j;main(t){for(scanf("%d",&t);t--;)for(a=z=0;scanf("%d%d",&x,&i);--x;printf("%d %d\n",-z,a))scanf("%d",&j),i-=j,a=i>a?i:a,z=i<z?i:z,i=j;exit(0);}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'z' [-Wimplicit-int]
    1 | a,z,x,i,j;main(t){for(scanf("%d",&t);t--;)for(a=z=0;scanf("%d%d",&x,&i);--x;printf("%d %d\n",-z,a))scanf("%d",&j),i-=j,a=i>a?i:a,z=i<z?i:z,i=j;exit(0);}
      |   ^
main.c:1:5: error: type defaults to 'int' in declaration of 'x' [-Wimplicit-int]
    1 | a,z,x,i,j;main(t){for(scanf("%d",&t);t--;)for(a=z=0;scanf("%d%d",&x,&i);--x;printf("%d %d\n",-z,a))scanf("%d",&j),i-=j,a=i>a?i:a,z=i<z?i:z,i=j;exit(0);}
      |     ^
main.c:1:7: error: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
    1 | a,z,x,i,j;main(t){for(scanf("%d",&t);t--;)for(a=z=0;scanf("%d%d",&x,&i);--x;printf("%d %d\n",-z,a))scanf("%d",&j),i-=j,a=i>a?i:a,z=i<z?i:z,i=j;exit(0);}
      |       ^
main.c:1:9: error: type defaults to 'int' in declaration of 'j' [-Wimplicit-int]
    1 | a,z,x,i,j;main(t){for(scanf("%d",&t);t--;)for(a=z=0;scanf("%d%d",&x,&i);--x;printf("%d %d\n",-z,a))scanf("%d",&j),i-=j,a=i>a?i:a,z=i<z?i:z,i=j;exit(0);}
      |         ^
main.c:1:11: error: return type defaults to 'int' [-Wimplicit-int]
    1 | a,z,x,i,j;main(t){for(scanf("%d",&t);t--;)for(a=z=0;scanf("%d%d",&x,&i);--x;printf("%d %d\n",-z,a))scanf("%d",&j),i-=j,a=i>a?i:a,z=i<z?i:z,i=j;exit(0);}
      |           ^~~~
main.c: In function 'main':
main.c:1:11: error: type of 't' defaults to 'int' [-Wimplicit-int]
main.c:1:23: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | a,z,x,i,j;main(t){for(scanf("%d",&t);t--;)for(a=z=0;scanf("%d%d",&x,&i);--x;printf("%d %d\n",-z,a))scanf("%d",&j),i-=j,a=i>a?i:a,z=i<z?i:z,i=j;exit(0);}
      |                       ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | a,z,x,i,j;main(t){for(scanf("%d",&t);t--;)for(a=z=0;scanf("%d%d",&x,&i);--x;printf("%d %d\n",-z,a))scanf("%d",&j),i-=j,a=i>a?i:a,z=i<z?i:z,i=j;exit(0);}
main.c:1:23: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | a,z,x,i,j;main(t){for(scanf("%d",&t);t--;)for(a=z=0;scanf("%d%d",&x,&i);--x;printf("%d %d\n",-z,a))scanf("%d",&j),i-=j,a=i>a?i:a,z=i<z?i:z,i=j;exit(0);}
      |                       ^~~~~
main.c:1:23: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:76: error: expected ')' before ';' token
    1 | a,z,x,i,j;main(t){for(scanf("%d",&t);t--;)for(a=z=0;scanf("%d%d",&x,&i);--x;printf("%d %d\n",-z,a))scanf("%d",&j),i-=j,a=i>a?i:a,z=i<z?i:z,i=j;exit(0);}
      |                                              ~                             ^
      |                                                                            )
main.c:1:144: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
    1 | a,z,x,i,j;main(t){for(scanf("%d",&t);t--;)for(a=z=0;scanf("%d%d",&x,&i);--x;printf("%d %d\n",-z,a))scanf("%d",&j),i-=j,a=i>a?i:a,z=i<z?i:z,i=j;exit(0);}
      |                                                                                                                                                ^~~~
main.c:1:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
  +++ |+#include <stdlib.h>
    1 | a,z,x,i,j;main(t){for(scanf("%d",&t);t--;)for(a=z=0;scanf("%d%d",&x,&i);--x;printf("%d %d\n",-z,a))scanf("%d",&j),i-=j,a=i>a?i:a,z=i<z?i:z,i=j;exit(0);}
main.c:1:144: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
    1 | a,z,x,i,j;main(t){for(scanf("%d",&t);t--;)for(a=z=0;scanf("%d%d",&x,&i);--x;printf("%d %d\n",-z,a))scanf("%d",&j),i-=j,a=i>a?i:a,z=i<z?i:z,i=j;exit(0);}
      |                                                                                                                                                ^~~~
main.c:1:144: note: include '<stdlib.h>' or provide a declaration of 'exit'