Result

WA

Duration

490ms

Code [DL]

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

stdin

24 29 30
35 96 03
41 93 60
70 90 41

stdout

stderr

/tmp/code.c:1:1: warning: data definition has no type or storage class
 z=12;a[x];s,q;main(p){for(;z--;a[z%9]-=a[9+z%3],s+=a[z%3]*=a[p=3+-~z%3]*a[q=6+(z+2)%3]-a[q-3]*a[p+3])scanf("%d",a+z);printf("%d",s/6);}
 ^
/tmp/code.c:1:1: warning: type defaults to 'int' in declaration of 'z' [-Wimplicit-int]
/tmp/code.c:1:8: error: 'x' undeclared here (not in a function)
 z=12;a[x];s,q;main(p){for(;z--;a[z%9]-=a[9+z%3],s+=a[z%3]*=a[p=3+-~z%3]*a[q=6+(z+2)%3]-a[q-3]*a[p+3])scanf("%d",a+z);printf("%d",s/6);}
        ^
/tmp/code.c:1:6: warning: data definition has no type or storage class
 z=12;a[x];s,q;main(p){for(;z--;a[z%9]-=a[9+z%3],s+=a[z%3]*=a[p=3+-~z%3]*a[q=6+(z+2)%3]-a[q-3]*a[p+3])scanf("%d",a+z);printf("%d",s/6);}
      ^
/tmp/code.c:1:6: warning: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
/tmp/code.c:1:11: warning: data definition has no type or storage class
 z=12;a[x];s,q;main(p){for(;z--;a[z%9]-=a[9+z%3],s+=a[z%3]*=a[p=3+-~z%3]*a[q=6+(z+2)%3]-a[q-3]*a[p+3])scanf("%d",a+z);printf("%d",s/6);}
           ^
/tmp/code.c:1:11: warning: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
/tmp/code.c:1:13: warning: type defaults to 'int' in declaration of 'q' [-Wimplicit-int]
 z=12;a[x];s,q;main(p){for(;z--;a[z%9]-=a[9+z%3],s+=a[z%3]*=a[p=3+-~z%3]*a[q=6+(z+2)%3]-a[q-3]*a[p+3])scanf("%d",a+z);printf("%d",s/6);}
             ^
/tmp/code.c:1:15: warning: return type defaults to 'int' [-Wimplicit-int]
 z=12;a[x];s,q;main(p){for(;z--;a[z%9]-=a[9+z%3],s+=a[z%3]*=a[p=3+-~z%3]*a[q=6+(z+2)%3]-a[q-3]*a[p+3])scanf("%d",a+z);printf("%d",s/6);}
               ^~~~
/tmp/code.c: In function 'main':
/tmp/code.c:1:15: warning: type of 'p' defaults to 'int' [-Wimplicit-int]
/tmp/code.c:1:48: warning: left-hand operand of comma expression has no effect [-Wunused-value]
 z=12;a[x];s,q;main(p){for(;z--;a[z%9]-=a[9+z%3],s+=a[z%3]*=a[p=3+-~z%3]*a[q=6+(z+2)%3]-a[q-3]*a[p+3])scanf("%d",a+z);printf("%d",s/6);}
                                                ^
/tmp/code.c:1:102: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
 z=12;a[x];s,q;main(p){for(;z--;a[z%9]-=a[9+z%3],s+=a[z%3]*=a[p=3+-~z%3]*a[q=6+(z+2)%3]-a[q-3]*a[p+3])scanf("%d",a+z);printf("%d",s/6);}
                                                                                                      ^~~~~
/tmp/code.c:1:102: warning: incompatible implicit declaration of built-in function 'scanf'
/tmp/code.c:1:102: note: include '<stdio.h>' or provide a declaration of 'scanf'
/tmp/code.c:1:118: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
 z=12;a[x];s,q;main(p){for(;z--;a[z%9]-=a[9+z%3],s+=a[z%3]*=a[p=3+-~z%3]*a[q=6+(z+2)%3]-a[q-3]*a[p+3])scanf("%d",a+z);printf("%d",s/6);}
                                                                                                                      ^~~~~~
/tmp/code.c:1:118: warning: incompatible implicit declaration of built-in function 'printf'
/tmp/code.c:1:118: note: include '<stdio.h>' or provide a declaration of 'printf'
/bin/script: line 16: /tmp/code: not found
rm: can't remove '/tmp/code': No such file or directory

strace