Result

WA

Duration

531ms

Code [DL]

i=36,a[];main(s){for(;i--;scanf("%d",a+35-i))s-=a[i/2]*a[8-i/12*6-i%3]*a[(i/6+1&2)*3+(i+3)/2%3+3]^-i%2;printf("%d",s/6-3);}

stdin

13 91 40
64 23 92
12 83 45
02 37 09

stdout

0

stderr

/tmp/code.c:1:1: warning: data definition has no type or storage class
 i=36,a[];main(s){for(;i--;scanf("%d",a+35-i))s-=a[i/2]*a[8-i/12*6-i%3]*a[(i/6+1&2)*3+(i+3)/2%3+3]^-i%2;printf("%d",s/6-3);}
 ^
/tmp/code.c:1:1: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
/tmp/code.c:1:6: warning: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
 i=36,a[];main(s){for(;i--;scanf("%d",a+35-i))s-=a[i/2]*a[8-i/12*6-i%3]*a[(i/6+1&2)*3+(i+3)/2%3+3]^-i%2;printf("%d",s/6-3);}
      ^
/tmp/code.c:1:10: warning: return type defaults to 'int' [-Wimplicit-int]
 i=36,a[];main(s){for(;i--;scanf("%d",a+35-i))s-=a[i/2]*a[8-i/12*6-i%3]*a[(i/6+1&2)*3+(i+3)/2%3+3]^-i%2;printf("%d",s/6-3);}
          ^~~~
/tmp/code.c: In function 'main':
/tmp/code.c:1:10: warning: type of 's' defaults to 'int' [-Wimplicit-int]
/tmp/code.c:1:27: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
 i=36,a[];main(s){for(;i--;scanf("%d",a+35-i))s-=a[i/2]*a[8-i/12*6-i%3]*a[(i/6+1&2)*3+(i+3)/2%3+3]^-i%2;printf("%d",s/6-3);}
                           ^~~~~
/tmp/code.c:1:27: warning: incompatible implicit declaration of built-in function 'scanf'
/tmp/code.c:1:27: note: include '<stdio.h>' or provide a declaration of 'scanf'
/tmp/code.c:1:78: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses]
 i=36,a[];main(s){for(;i--;scanf("%d",a+35-i))s-=a[i/2]*a[8-i/12*6-i%3]*a[(i/6+1&2)*3+(i+3)/2%3+3]^-i%2;printf("%d",s/6-3);}
                                                                           ~~~^~
/tmp/code.c:1:104: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
 i=36,a[];main(s){for(;i--;scanf("%d",a+35-i))s-=a[i/2]*a[8-i/12*6-i%3]*a[(i/6+1&2)*3+(i+3)/2%3+3]^-i%2;printf("%d",s/6-3);}
                                                                                                        ^~~~~~
/tmp/code.c:1:104: warning: incompatible implicit declaration of built-in function 'printf'
/tmp/code.c:1:104: 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
 i=36,a[];main(s){for(;i--;scanf("%d",a+35-i))s-=a[i/2]*a[8-i/12*6-i%3]*a[(i/6+1&2)*3+(i+3)/2%3+3]^-i%2;printf("%d",s/6-3);}
      ^
/tmp/code.c: In function 'main':
/tmp/code.c:1:73: warning: array subscript is above array bounds [-Warray-bounds]
 i=36,a[];main(s){for(;i--;scanf("%d",a+35-i))s-=a[i/2]*a[8-i/12*6-i%3]*a[(i/6+1&2)*3+(i+3)/2%3+3]^-i%2;printf("%d",s/6-3);}
                                                                        ~^~~~~~~~~~~~~~~~~~~~~~~~~