Result

WA

Duration

507ms

Code [DL]

y;main(z){int a[z=12];for(;z--;)scanf("%d",a+z);for(z=9;z--;)a[z]-=a[9+z%3];printf("%d",(a[3]*(a[7]*a[2]-a[1]*[8])+a[6]*(a[1]*a[5]-a[4]*a[2])+a[0]*(a[4]*a[8]-a[7]*a[5]))/6);}

stdin

05 27 31
52 99 28
50 97 78
43 08 59

stdout

stderr

/tmp/code.c:1:1: warning: data definition has no type or storage class
 y;main(z){int a[z=12];for(;z--;)scanf("%d",a+z);for(z=9;z--;)a[z]-=a[9+z%3];printf("%d",(a[3]*(a[7]*a[2]-a[1]*[8])+a[6]*(a[1]*a[5]-a[4]*a[2])+a[0]*(a[4]*a[8]-a[7]*a[5]))/6);}
 ^
/tmp/code.c:1:1: warning: type defaults to 'int' in declaration of 'y' [-Wimplicit-int]
/tmp/code.c:1:3: warning: return type defaults to 'int' [-Wimplicit-int]
 y;main(z){int a[z=12];for(;z--;)scanf("%d",a+z);for(z=9;z--;)a[z]-=a[9+z%3];printf("%d",(a[3]*(a[7]*a[2]-a[1]*[8])+a[6]*(a[1]*a[5]-a[4]*a[2])+a[0]*(a[4]*a[8]-a[7]*a[5]))/6);}
   ^~~~
/tmp/code.c: In function 'main':
/tmp/code.c:1:3: warning: type of 'z' defaults to 'int' [-Wimplicit-int]
/tmp/code.c:1:33: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
 y;main(z){int a[z=12];for(;z--;)scanf("%d",a+z);for(z=9;z--;)a[z]-=a[9+z%3];printf("%d",(a[3]*(a[7]*a[2]-a[1]*[8])+a[6]*(a[1]*a[5]-a[4]*a[2])+a[0]*(a[4]*a[8]-a[7]*a[5]))/6);}
                                 ^~~~~
/tmp/code.c:1:33: warning: incompatible implicit declaration of built-in function 'scanf'
/tmp/code.c:1:33: note: include '<stdio.h>' or provide a declaration of 'scanf'
/tmp/code.c:1:77: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
 y;main(z){int a[z=12];for(;z--;)scanf("%d",a+z);for(z=9;z--;)a[z]-=a[9+z%3];printf("%d",(a[3]*(a[7]*a[2]-a[1]*[8])+a[6]*(a[1]*a[5]-a[4]*a[2])+a[0]*(a[4]*a[8]-a[7]*a[5]))/6);}
                                                                             ^~~~~~
/tmp/code.c:1:77: warning: incompatible implicit declaration of built-in function 'printf'
/tmp/code.c:1:77: note: include '<stdio.h>' or provide a declaration of 'printf'
/tmp/code.c:1:111: error: expected expression before '[' token
 y;main(z){int a[z=12];for(;z--;)scanf("%d",a+z);for(z=9;z--;)a[z]-=a[9+z%3];printf("%d",(a[3]*(a[7]*a[2]-a[1]*[8])+a[6]*(a[1]*a[5]-a[4]*a[2])+a[0]*(a[4]*a[8]-a[7]*a[5]))/6);}
                                                                                                               ^
/bin/script: line 16: /tmp/code: not found
rm: can't remove '/tmp/code': No such file or directory

strace