by@akouryy1
AC
516ms
y,z;main(){int a[z=12];for(;z--;)scanf("%d",a+z);for(z=9;z--;)a[z]-=a[9+z%3];printf("%d",(a[3]*a[7]*a[2]+a[6]*a[1]*a[5]+a[0]*a[4]*a[8]-a[6]*a[4]*a[2]-a[0]*a[7]*a[5]-a[3]*a[1]*a[8])/6);}
04 05 91 76 70 48 61 76 52 91 63 91
10962
/tmp/code.c:1:1: warning: data definition has no type or storage class y,z;main(){int a[z=12];for(;z--;)scanf("%d",a+z);for(z=9;z--;)a[z]-=a[9+z%3];printf("%d",(a[3]*a[7]*a[2]+a[6]*a[1]*a[5]+a[0]*a[4]*a[8]-a[6]*a[4]*a[2]-a[0]*a[7]*a[5]-a[3]*a[1]*a[8])/6);} ^ /tmp/code.c:1:1: warning: type defaults to 'int' in declaration of 'y' [-Wimplicit-int] /tmp/code.c:1:3: warning: type defaults to 'int' in declaration of 'z' [-Wimplicit-int] y,z;main(){int a[z=12];for(;z--;)scanf("%d",a+z);for(z=9;z--;)a[z]-=a[9+z%3];printf("%d",(a[3]*a[7]*a[2]+a[6]*a[1]*a[5]+a[0]*a[4]*a[8]-a[6]*a[4]*a[2]-a[0]*a[7]*a[5]-a[3]*a[1]*a[8])/6);} ^ /tmp/code.c:1:5: warning: return type defaults to 'int' [-Wimplicit-int] y,z;main(){int a[z=12];for(;z--;)scanf("%d",a+z);for(z=9;z--;)a[z]-=a[9+z%3];printf("%d",(a[3]*a[7]*a[2]+a[6]*a[1]*a[5]+a[0]*a[4]*a[8]-a[6]*a[4]*a[2]-a[0]*a[7]*a[5]-a[3]*a[1]*a[8])/6);} ^~~~ /tmp/code.c: In function 'main': /tmp/code.c:1:34: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] y,z;main(){int a[z=12];for(;z--;)scanf("%d",a+z);for(z=9;z--;)a[z]-=a[9+z%3];printf("%d",(a[3]*a[7]*a[2]+a[6]*a[1]*a[5]+a[0]*a[4]*a[8]-a[6]*a[4]*a[2]-a[0]*a[7]*a[5]-a[3]*a[1]*a[8])/6);} ^~~~~ /tmp/code.c:1:34: warning: incompatible implicit declaration of built-in function 'scanf' /tmp/code.c:1:34: note: include '<stdio.h>' or provide a declaration of 'scanf' /tmp/code.c:1:78: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration] y,z;main(){int a[z=12];for(;z--;)scanf("%d",a+z);for(z=9;z--;)a[z]-=a[9+z%3];printf("%d",(a[3]*a[7]*a[2]+a[6]*a[1]*a[5]+a[0]*a[4]*a[8]-a[6]*a[4]*a[2]-a[0]*a[7]*a[5]-a[3]*a[1]*a[8])/6);} ^~~~~~ /tmp/code.c:1:78: warning: incompatible implicit declaration of built-in function 'printf' /tmp/code.c:1:78: note: include '<stdio.h>' or provide a declaration of 'printf'