Language: C

a,b,n,i,Z[];main(c){for(scanf("%d",&n);~scanf("%d%d%d%d",&a,&b,&c,Z);)c-*Z?s[c>*Z?a:b]+=3:++Z[a]-++Z[b];for(;a=b=i++<n;printf("%d\n",b))for(;a<=n;)b+=Z[i]<Z[a++];}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a,b,n,i,Z[];main(c){for(scanf("%d",&n);~scanf("%d%d%d%d",&a,&b,&c,Z);)c-*Z?s[c>*Z?a:b]+=3:++Z[a]-++Z[b];for(;a=b=i++<n;printf("%d\n",b))for(;a<=n;)b+=Z[i]<Z[a++];}
      | ^
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 'b' [-Wimplicit-int]
    1 | a,b,n,i,Z[];main(c){for(scanf("%d",&n);~scanf("%d%d%d%d",&a,&b,&c,Z);)c-*Z?s[c>*Z?a:b]+=3:++Z[a]-++Z[b];for(;a=b=i++<n;printf("%d\n",b))for(;a<=n;)b+=Z[i]<Z[a++];}
      |   ^
main.c:1:5: error: type defaults to 'int' in declaration of 'n' [-Wimplicit-int]
    1 | a,b,n,i,Z[];main(c){for(scanf("%d",&n);~scanf("%d%d%d%d",&a,&b,&c,Z);)c-*Z?s[c>*Z?a:b]+=3:++Z[a]-++Z[b];for(;a=b=i++<n;printf("%d\n",b))for(;a<=n;)b+=Z[i]<Z[a++];}
      |     ^
main.c:1:7: error: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
    1 | a,b,n,i,Z[];main(c){for(scanf("%d",&n);~scanf("%d%d%d%d",&a,&b,&c,Z);)c-*Z?s[c>*Z?a:b]+=3:++Z[a]-++Z[b];for(;a=b=i++<n;printf("%d\n",b))for(;a<=n;)b+=Z[i]<Z[a++];}
      |       ^
main.c:1:9: error: type defaults to 'int' in declaration of 'Z' [-Wimplicit-int]
    1 | a,b,n,i,Z[];main(c){for(scanf("%d",&n);~scanf("%d%d%d%d",&a,&b,&c,Z);)c-*Z?s[c>*Z?a:b]+=3:++Z[a]-++Z[b];for(;a=b=i++<n;printf("%d\n",b))for(;a<=n;)b+=Z[i]<Z[a++];}
      |         ^
main.c:1:13: error: return type defaults to 'int' [-Wimplicit-int]
    1 | a,b,n,i,Z[];main(c){for(scanf("%d",&n);~scanf("%d%d%d%d",&a,&b,&c,Z);)c-*Z?s[c>*Z?a:b]+=3:++Z[a]-++Z[b];for(;a=b=i++<n;printf("%d\n",b))for(;a<=n;)b+=Z[i]<Z[a++];}
      |             ^~~~
main.c: In function 'main':
main.c:1:13: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:25: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | a,b,n,i,Z[];main(c){for(scanf("%d",&n);~scanf("%d%d%d%d",&a,&b,&c,Z);)c-*Z?s[c>*Z?a:b]+=3:++Z[a]-++Z[b];for(;a=b=i++<n;printf("%d\n",b))for(;a<=n;)b+=Z[i]<Z[a++];}
      |                         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | a,b,n,i,Z[];main(c){for(scanf("%d",&n);~scanf("%d%d%d%d",&a,&b,&c,Z);)c-*Z?s[c>*Z?a:b]+=3:++Z[a]-++Z[b];for(;a=b=i++<n;printf("%d\n",b))for(;a<=n;)b+=Z[i]<Z[a++];}
main.c:1:25: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | a,b,n,i,Z[];main(c){for(scanf("%d",&n);~scanf("%d%d%d%d",&a,&b,&c,Z);)c-*Z?s[c>*Z?a:b]+=3:++Z[a]-++Z[b];for(;a=b=i++<n;printf("%d\n",b))for(;a<=n;)b+=Z[i]<Z[a++];}
      |                         ^~~~~
main.c:1:25: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:76: error: 's' undeclared (first use in this function)
    1 | a,b,n,i,Z[];main(c){for(scanf("%d",&n);~scanf("%d%d%d%d",&a,&b,&c,Z);)c-*Z?s[c>*Z?a:b]+=3:++Z[a]-++Z[b];for(;a=b=i++<n;printf("%d\n",b))for(;a<=n;)b+=Z[i]<Z[a++];}
      |                                                                            ^
main.c:1:76: note: each undeclared identifier is reported only once for each function it appears in
main.c:1:120: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | a,b,n,i,Z[];main(c){for(scanf("%d",&n);~scanf("%d%d%d%d",&a,&b,&c,Z);)c-*Z?s[c>*Z?a:b]+=3:++Z[a]-++Z[b];for(;a=b=i++<n;printf("%d\n",b))for(;a<=n;)b+=Z[i]<Z[a++];}
      |                                                                                                                        ^~~~~~
main.c:1:120: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:120: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:120: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c: At top level:
main.c:1:9: warning: array 'Z' assumed to have one element
    1 | a,b,n,i,Z[];main(c){for(scanf("%d",&n);~scanf("%d%d%d%d",&a,&b,&c,Z);)c-*Z?s[c>*Z?a:b]+=3:++Z[a]-++Z[b];for(;a=b=i++<n;printf("%d\n",b))for(;a<=n;)b+=Z[i]<Z[a++];}
      |         ^