Result

WA

Duration

520ms

Code [DL]

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

stdin

79 19 03
11 01 60
40 51 67
60 59 32

stdout

0

stderr

/tmp/code.c:1:1: warning: data definition has no type or storage class
 z=12;a[];s,q;main(p){for(;--z;a[z%9]-=a[9+z%3],s+=a[z%3]*=a[p=3+-~z%3]*a[q=z?5+z:8]-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:6: warning: data definition has no type or storage class
 z=12;a[];s,q;main(p){for(;--z;a[z%9]-=a[9+z%3],s+=a[z%3]*=a[p=3+-~z%3]*a[q=z?5+z:8]-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:10: warning: data definition has no type or storage class
 z=12;a[];s,q;main(p){for(;--z;a[z%9]-=a[9+z%3],s+=a[z%3]*=a[p=3+-~z%3]*a[q=z?5+z:8]-a[q-3]*a[p+3])scanf("%d",a+z);printf("%d",s/6);}
          ^
/tmp/code.c:1:10: warning: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
/tmp/code.c:1:12: warning: type defaults to 'int' in declaration of 'q' [-Wimplicit-int]
 z=12;a[];s,q;main(p){for(;--z;a[z%9]-=a[9+z%3],s+=a[z%3]*=a[p=3+-~z%3]*a[q=z?5+z:8]-a[q-3]*a[p+3])scanf("%d",a+z);printf("%d",s/6);}
            ^
/tmp/code.c:1:14: warning: return type defaults to 'int' [-Wimplicit-int]
 z=12;a[];s,q;main(p){for(;--z;a[z%9]-=a[9+z%3],s+=a[z%3]*=a[p=3+-~z%3]*a[q=z?5+z:8]-a[q-3]*a[p+3])scanf("%d",a+z);printf("%d",s/6);}
              ^~~~
/tmp/code.c: In function 'main':
/tmp/code.c:1:14: warning: type of 'p' defaults to 'int' [-Wimplicit-int]
/tmp/code.c:1:62: warning: operation on 'p' may be undefined [-Wsequence-point]
 z=12;a[];s,q;main(p){for(;--z;a[z%9]-=a[9+z%3],s+=a[z%3]*=a[p=3+-~z%3]*a[q=z?5+z:8]-a[q-3]*a[p+3])scanf("%d",a+z);printf("%d",s/6);}
                                                             ~^~~~~~~~
/tmp/code.c:1:75: warning: operation on 'q' may be undefined [-Wsequence-point]
 z=12;a[];s,q;main(p){for(;--z;a[z%9]-=a[9+z%3],s+=a[z%3]*=a[p=3+-~z%3]*a[q=z?5+z:8]-a[q-3]*a[p+3])scanf("%d",a+z);printf("%d",s/6);}
                                                                          ~^~~~~~~~
/tmp/code.c:1:99: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
 z=12;a[];s,q;main(p){for(;--z;a[z%9]-=a[9+z%3],s+=a[z%3]*=a[p=3+-~z%3]*a[q=z?5+z:8]-a[q-3]*a[p+3])scanf("%d",a+z);printf("%d",s/6);}
                                                                                                   ^~~~~
/tmp/code.c:1:99: warning: incompatible implicit declaration of built-in function 'scanf'
/tmp/code.c:1:99: note: include '<stdio.h>' or provide a declaration of 'scanf'
/tmp/code.c:1:115: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
 z=12;a[];s,q;main(p){for(;--z;a[z%9]-=a[9+z%3],s+=a[z%3]*=a[p=3+-~z%3]*a[q=z?5+z:8]-a[q-3]*a[p+3])scanf("%d",a+z);printf("%d",s/6);}
                                                                                                                   ^~~~~~
/tmp/code.c:1:115: warning: incompatible implicit declaration of built-in function 'printf'
/tmp/code.c:1:115: note: include '<stdio.h>' or provide a declaration of 'printf'
/tmp/code.c: At top level:
/tmp/code.c:1:6: warning: array 'a' assumed to have one element
 z=12;a[];s,q;main(p){for(;--z;a[z%9]-=a[9+z%3],s+=a[z%3]*=a[p=3+-~z%3]*a[q=z?5+z:8]-a[q-3]*a[p+3])scanf("%d",a+z);printf("%d",s/6);}
      ^
/tmp/code.c: In function 'main':
/tmp/code.c:1:40: warning: array subscript is above array bounds [-Warray-bounds]
 z=12;a[];s,q;main(p){for(;--z;a[z%9]-=a[9+z%3],s+=a[z%3]*=a[p=3+-~z%3]*a[q=z?5+z:8]-a[q-3]*a[p+3])scanf("%d",a+z);printf("%d",s/6);}
                                       ~^~~~~~~
/tmp/code.c:1:60: warning: array subscript is above array bounds [-Warray-bounds]
 z=12;a[];s,q;main(p){for(;--z;a[z%9]-=a[9+z%3],s+=a[z%3]*=a[p=3+-~z%3]*a[q=z?5+z:8]-a[q-3]*a[p+3])scanf("%d",a+z);printf("%d",s/6);}
                                                           ~^~~~~~~~~~~
/tmp/code.c:1:93: warning: array subscript is above array bounds [-Warray-bounds]
 z=12;a[];s,q;main(p){for(;--z;a[z%9]-=a[9+z%3],s+=a[z%3]*=a[p=3+-~z%3]*a[q=z?5+z:8]-a[q-3]*a[p+3])scanf("%d",a+z);printf("%d",s/6);}
                                                                                            ~^~~~~

strace