Result

WA

Duration

560ms

Code [DL]

i=3;X[15];main(s){for(;~scanf("%d",X+i);)s-=i/12*(X[i-3]-=X[i])*(X[++i%3]*X[3-~i%3]-X[i%3+3]*X[-~i%3]);printf("%d",s/6);}

stdin

04 74 04
51 70 02
93 94 35
81 50 46

stdout

-7578

stderr

/tmp/code.c:1:1: warning: data definition has no type or storage class
 i=3;X[15];main(s){for(;~scanf("%d",X+i);)s-=i/12*(X[i-3]-=X[i])*(X[++i%3]*X[3-~i%3]-X[i%3+3]*X[-~i%3]);printf("%d",s/6);}
 ^
/tmp/code.c:1:1: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
/tmp/code.c:1:5: warning: data definition has no type or storage class
 i=3;X[15];main(s){for(;~scanf("%d",X+i);)s-=i/12*(X[i-3]-=X[i])*(X[++i%3]*X[3-~i%3]-X[i%3+3]*X[-~i%3]);printf("%d",s/6);}
     ^
/tmp/code.c:1:5: warning: type defaults to 'int' in declaration of 'X' [-Wimplicit-int]
/tmp/code.c:1:11: warning: return type defaults to 'int' [-Wimplicit-int]
 i=3;X[15];main(s){for(;~scanf("%d",X+i);)s-=i/12*(X[i-3]-=X[i])*(X[++i%3]*X[3-~i%3]-X[i%3+3]*X[-~i%3]);printf("%d",s/6);}
           ^~~~
/tmp/code.c: In function 'main':
/tmp/code.c:1:11: warning: type of 's' defaults to 'int' [-Wimplicit-int]
/tmp/code.c:1:25: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
 i=3;X[15];main(s){for(;~scanf("%d",X+i);)s-=i/12*(X[i-3]-=X[i])*(X[++i%3]*X[3-~i%3]-X[i%3+3]*X[-~i%3]);printf("%d",s/6);}
                         ^~~~~
/tmp/code.c:1:25: warning: incompatible implicit declaration of built-in function 'scanf'
/tmp/code.c:1:25: note: include '<stdio.h>' or provide a declaration of 'scanf'
/tmp/code.c:1:68: warning: operation on 'i' may be undefined [-Wsequence-point]
 i=3;X[15];main(s){for(;~scanf("%d",X+i);)s-=i/12*(X[i-3]-=X[i])*(X[++i%3]*X[3-~i%3]-X[i%3+3]*X[-~i%3]);printf("%d",s/6);}
                                                                    ^~~
/tmp/code.c:1:68: warning: operation on 'i' may be undefined [-Wsequence-point]
/tmp/code.c:1:68: warning: operation on 'i' may be undefined [-Wsequence-point]
/tmp/code.c:1:68: warning: operation on 'i' may be undefined [-Wsequence-point]
/tmp/code.c:1:68: warning: operation on 'i' may be undefined [-Wsequence-point]
/tmp/code.c:1:68: warning: operation on 'i' may be undefined [-Wsequence-point]
/tmp/code.c:1:68: warning: operation on 'i' may be undefined [-Wsequence-point]
/tmp/code.c:1:104: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
 i=3;X[15];main(s){for(;~scanf("%d",X+i);)s-=i/12*(X[i-3]-=X[i])*(X[++i%3]*X[3-~i%3]-X[i%3+3]*X[-~i%3]);printf("%d",s/6);}
                                                                                                        ^~~~~~
/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'

strace