Result

AC

Duration

550ms

Code [DL]

#define Z(a,b,c) int a,b,c;scanf(A,&a,&b,&c);a-=j;b-=k;c-=l;
*A="%d%d%d";j,k,l;main(){scanf(A,&j,&k,&l);Z(a,b,c)Z(d,e,f)Z(g,h,i)printf("%d",(a*e*i+b*f*g+c*d*h-a*h*f-b*i*d-c*g*e)/6);}

stdin

49 55 91
57 37 12
01 73 76
08 84 48

stdout

12506

stderr

/tmp/code.c:2:1: warning: data definition has no type or storage class
 *A="%d%d%d";j,k,l;main(){scanf(A,&j,&k,&l);Z(a,b,c)Z(d,e,f)Z(g,h,i)printf("%d",(a*e*i+b*f*g+c*d*h-a*h*f-b*i*d-c*g*e)/6);}
 ^
/tmp/code.c:2:2: warning: type defaults to 'int' in declaration of 'A' [-Wimplicit-int]
 *A="%d%d%d";j,k,l;main(){scanf(A,&j,&k,&l);Z(a,b,c)Z(d,e,f)Z(g,h,i)printf("%d",(a*e*i+b*f*g+c*d*h-a*h*f-b*i*d-c*g*e)/6);}
  ^
/tmp/code.c:2:4: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
 *A="%d%d%d";j,k,l;main(){scanf(A,&j,&k,&l);Z(a,b,c)Z(d,e,f)Z(g,h,i)printf("%d",(a*e*i+b*f*g+c*d*h-a*h*f-b*i*d-c*g*e)/6);}
    ^~~~~~~~
/tmp/code.c:2:13: warning: data definition has no type or storage class
 *A="%d%d%d";j,k,l;main(){scanf(A,&j,&k,&l);Z(a,b,c)Z(d,e,f)Z(g,h,i)printf("%d",(a*e*i+b*f*g+c*d*h-a*h*f-b*i*d-c*g*e)/6);}
             ^
/tmp/code.c:2:13: warning: type defaults to 'int' in declaration of 'j' [-Wimplicit-int]
/tmp/code.c:2:15: warning: type defaults to 'int' in declaration of 'k' [-Wimplicit-int]
 *A="%d%d%d";j,k,l;main(){scanf(A,&j,&k,&l);Z(a,b,c)Z(d,e,f)Z(g,h,i)printf("%d",(a*e*i+b*f*g+c*d*h-a*h*f-b*i*d-c*g*e)/6);}
               ^
/tmp/code.c:2:17: warning: type defaults to 'int' in declaration of 'l' [-Wimplicit-int]
 *A="%d%d%d";j,k,l;main(){scanf(A,&j,&k,&l);Z(a,b,c)Z(d,e,f)Z(g,h,i)printf("%d",(a*e*i+b*f*g+c*d*h-a*h*f-b*i*d-c*g*e)/6);}
                 ^
/tmp/code.c:2:19: warning: return type defaults to 'int' [-Wimplicit-int]
 *A="%d%d%d";j,k,l;main(){scanf(A,&j,&k,&l);Z(a,b,c)Z(d,e,f)Z(g,h,i)printf("%d",(a*e*i+b*f*g+c*d*h-a*h*f-b*i*d-c*g*e)/6);}
                   ^~~~
/tmp/code.c: In function 'main':
/tmp/code.c:2:26: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
 *A="%d%d%d";j,k,l;main(){scanf(A,&j,&k,&l);Z(a,b,c)Z(d,e,f)Z(g,h,i)printf("%d",(a*e*i+b*f*g+c*d*h-a*h*f-b*i*d-c*g*e)/6);}
                          ^~~~~
/tmp/code.c:2:26: warning: incompatible implicit declaration of built-in function 'scanf'
/tmp/code.c:2:26: note: include '<stdio.h>' or provide a declaration of 'scanf'
/tmp/code.c:2:32: warning: passing argument 1 of 'scanf' from incompatible pointer type [-Wincompatible-pointer-types]
 *A="%d%d%d";j,k,l;main(){scanf(A,&j,&k,&l);Z(a,b,c)Z(d,e,f)Z(g,h,i)printf("%d",(a*e*i+b*f*g+c*d*h-a*h*f-b*i*d-c*g*e)/6);}
                                ^
/tmp/code.c:2:32: note: expected 'const char *' but argument is of type 'int *'
/tmp/code.c:1:34: warning: passing argument 1 of 'scanf' from incompatible pointer type [-Wincompatible-pointer-types]
 #define Z(a,b,c) int a,b,c;scanf(A,&a,&b,&c);a-=j;b-=k;c-=l;
                                  ^
/tmp/code.c:2:44: note: in expansion of macro 'Z'
 *A="%d%d%d";j,k,l;main(){scanf(A,&j,&k,&l);Z(a,b,c)Z(d,e,f)Z(g,h,i)printf("%d",(a*e*i+b*f*g+c*d*h-a*h*f-b*i*d-c*g*e)/6);}
                                            ^
/tmp/code.c:1:34: note: expected 'const char *' but argument is of type 'int *'
 #define Z(a,b,c) int a,b,c;scanf(A,&a,&b,&c);a-=j;b-=k;c-=l;
                                  ^
/tmp/code.c:2:44: note: in expansion of macro 'Z'
 *A="%d%d%d";j,k,l;main(){scanf(A,&j,&k,&l);Z(a,b,c)Z(d,e,f)Z(g,h,i)printf("%d",(a*e*i+b*f*g+c*d*h-a*h*f-b*i*d-c*g*e)/6);}
                                            ^
/tmp/code.c:1:34: warning: passing argument 1 of 'scanf' from incompatible pointer type [-Wincompatible-pointer-types]
 #define Z(a,b,c) int a,b,c;scanf(A,&a,&b,&c);a-=j;b-=k;c-=l;
                                  ^
/tmp/code.c:2:52: note: in expansion of macro 'Z'
 *A="%d%d%d";j,k,l;main(){scanf(A,&j,&k,&l);Z(a,b,c)Z(d,e,f)Z(g,h,i)printf("%d",(a*e*i+b*f*g+c*d*h-a*h*f-b*i*d-c*g*e)/6);}
                                                    ^
/tmp/code.c:1:34: note: expected 'const char *' but argument is of type 'int *'
 #define Z(a,b,c) int a,b,c;scanf(A,&a,&b,&c);a-=j;b-=k;c-=l;
                                  ^
/tmp/code.c:2:52: note: in expansion of macro 'Z'
 *A="%d%d%d";j,k,l;main(){scanf(A,&j,&k,&l);Z(a,b,c)Z(d,e,f)Z(g,h,i)printf("%d",(a*e*i+b*f*g+c*d*h-a*h*f-b*i*d-c*g*e)/6);}
                                                    ^
/tmp/code.c:1:34: warning: passing argument 1 of 'scanf' from incompatible pointer type [-Wincompatible-pointer-types]
 #define Z(a,b,c) int a,b,c;scanf(A,&a,&b,&c);a-=j;b-=k;c-=l;
                                  ^
/tmp/code.c:2:60: note: in expansion of macro 'Z'
 *A="%d%d%d";j,k,l;main(){scanf(A,&j,&k,&l);Z(a,b,c)Z(d,e,f)Z(g,h,i)printf("%d",(a*e*i+b*f*g+c*d*h-a*h*f-b*i*d-c*g*e)/6);}
                                                            ^
/tmp/code.c:1:34: note: expected 'const char *' but argument is of type 'int *'
 #define Z(a,b,c) int a,b,c;scanf(A,&a,&b,&c);a-=j;b-=k;c-=l;
                                  ^
/tmp/code.c:2:60: note: in expansion of macro 'Z'
 *A="%d%d%d";j,k,l;main(){scanf(A,&j,&k,&l);Z(a,b,c)Z(d,e,f)Z(g,h,i)printf("%d",(a*e*i+b*f*g+c*d*h-a*h*f-b*i*d-c*g*e)/6);}
                                                            ^
/tmp/code.c:2:68: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
 *A="%d%d%d";j,k,l;main(){scanf(A,&j,&k,&l);Z(a,b,c)Z(d,e,f)Z(g,h,i)printf("%d",(a*e*i+b*f*g+c*d*h-a*h*f-b*i*d-c*g*e)/6);}
                                                                    ^~~~~~
/tmp/code.c:2:68: warning: incompatible implicit declaration of built-in function 'printf'
/tmp/code.c:2:68: note: include '<stdio.h>' or provide a declaration of 'printf'

strace