Result

WA

Duration

524ms

Code [DL]

a[];s;main(y,z){z=12;for(;z--;)scanf("%d",a+z);for(z=9;z--;)a[z]-=a[9+z%3];for(z=3;z--;)s+=a[z]*(a[3+-~z%3]*a[6+(z+2)%3]-a[3+(z+2)%3]*a[6+-~z%3]);printf("%d",s/6);}

stdin

50 94 55
30 79 20
75 58 83
03 29 04

stdout

0

stderr

/tmp/code.c:1:1: warning: data definition has no type or storage class
 a[];s;main(y,z){z=12;for(;z--;)scanf("%d",a+z);for(z=9;z--;)a[z]-=a[9+z%3];for(z=3;z--;)s+=a[z]*(a[3+-~z%3]*a[6+(z+2)%3]-a[3+(z+2)%3]*a[6+-~z%3]);printf("%d",s/6);}
 ^
/tmp/code.c:1:1: warning: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
/tmp/code.c:1:5: warning: data definition has no type or storage class
 a[];s;main(y,z){z=12;for(;z--;)scanf("%d",a+z);for(z=9;z--;)a[z]-=a[9+z%3];for(z=3;z--;)s+=a[z]*(a[3+-~z%3]*a[6+(z+2)%3]-a[3+(z+2)%3]*a[6+-~z%3]);printf("%d",s/6);}
     ^
/tmp/code.c:1:5: warning: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
/tmp/code.c:1:7: warning: return type defaults to 'int' [-Wimplicit-int]
 a[];s;main(y,z){z=12;for(;z--;)scanf("%d",a+z);for(z=9;z--;)a[z]-=a[9+z%3];for(z=3;z--;)s+=a[z]*(a[3+-~z%3]*a[6+(z+2)%3]-a[3+(z+2)%3]*a[6+-~z%3]);printf("%d",s/6);}
       ^~~~
/tmp/code.c: In function 'main':
/tmp/code.c:1:7: warning: type of 'y' defaults to 'int' [-Wimplicit-int]
/tmp/code.c:1:7: warning: type of 'z' defaults to 'int' [-Wimplicit-int]
/tmp/code.c:1:32: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
 a[];s;main(y,z){z=12;for(;z--;)scanf("%d",a+z);for(z=9;z--;)a[z]-=a[9+z%3];for(z=3;z--;)s+=a[z]*(a[3+-~z%3]*a[6+(z+2)%3]-a[3+(z+2)%3]*a[6+-~z%3]);printf("%d",s/6);}
                                ^~~~~
/tmp/code.c:1:32: warning: incompatible implicit declaration of built-in function 'scanf'
/tmp/code.c:1:32: note: include '<stdio.h>' or provide a declaration of 'scanf'
/tmp/code.c:1:147: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
 a[];s;main(y,z){z=12;for(;z--;)scanf("%d",a+z);for(z=9;z--;)a[z]-=a[9+z%3];for(z=3;z--;)s+=a[z]*(a[3+-~z%3]*a[6+(z+2)%3]-a[3+(z+2)%3]*a[6+-~z%3]);printf("%d",s/6);}
                                                                                                                                                   ^~~~~~
/tmp/code.c:1:147: warning: incompatible implicit declaration of built-in function 'printf'
/tmp/code.c:1:147: note: include '<stdio.h>' or provide a declaration of 'printf'
/tmp/code.c: At top level:
/tmp/code.c:1:1: warning: array 'a' assumed to have one element
 a[];s;main(y,z){z=12;for(;z--;)scanf("%d",a+z);for(z=9;z--;)a[z]-=a[9+z%3];for(z=3;z--;)s+=a[z]*(a[3+-~z%3]*a[6+(z+2)%3]-a[3+(z+2)%3]*a[6+-~z%3]);printf("%d",s/6);}
 ^
/tmp/code.c: In function 'main':
/tmp/code.c:1:68: warning: array subscript is above array bounds [-Warray-bounds]
 a[];s;main(y,z){z=12;for(;z--;)scanf("%d",a+z);for(z=9;z--;)a[z]-=a[9+z%3];for(z=3;z--;)s+=a[z]*(a[3+-~z%3]*a[6+(z+2)%3]-a[3+(z+2)%3]*a[6+-~z%3]);printf("%d",s/6);}
                                                                   ~^~~~~~~
/tmp/code.c:1:99: warning: array subscript is above array bounds [-Warray-bounds]
 a[];s;main(y,z){z=12;for(;z--;)scanf("%d",a+z);for(z=9;z--;)a[z]-=a[9+z%3];for(z=3;z--;)s+=a[z]*(a[3+-~z%3]*a[6+(z+2)%3]-a[3+(z+2)%3]*a[6+-~z%3]);printf("%d",s/6);}
                                                                                                  ~^~~~~~~~~
/tmp/code.c:1:110: warning: array subscript is above array bounds [-Warray-bounds]
 a[];s;main(y,z){z=12;for(;z--;)scanf("%d",a+z);for(z=9;z--;)a[z]-=a[9+z%3];for(z=3;z--;)s+=a[z]*(a[3+-~z%3]*a[6+(z+2)%3]-a[3+(z+2)%3]*a[6+-~z%3]);printf("%d",s/6);}
                                                                                                             ~^~~~~~~~~~~
/tmp/code.c:1:123: warning: array subscript is above array bounds [-Warray-bounds]
 a[];s;main(y,z){z=12;for(;z--;)scanf("%d",a+z);for(z=9;z--;)a[z]-=a[9+z%3];for(z=3;z--;)s+=a[z]*(a[3+-~z%3]*a[6+(z+2)%3]-a[3+(z+2)%3]*a[6+-~z%3]);printf("%d",s/6);}
                                                                                                                          ~^~~~~~~~~~~
/tmp/code.c:1:136: warning: array subscript is above array bounds [-Warray-bounds]
 a[];s;main(y,z){z=12;for(;z--;)scanf("%d",a+z);for(z=9;z--;)a[z]-=a[9+z%3];for(z=3;z--;)s+=a[z]*(a[3+-~z%3]*a[6+(z+2)%3]-a[3+(z+2)%3]*a[6+-~z%3]);printf("%d",s/6);}
                                                                                                                                       ~^~~~~~~~~

strace