by@akouryy1
AC
534ms
z=12;a[12];s,q;main(p){for(;z--;z<9&&(a[z]-=a[9+z%3]))scanf("%d",a+z);for(z=3;z--;)s+=a[z]*=a[p=3+-~z%3]*a[q=6+(z+2)%3]-a[q-3]*a[p+3];printf("%d",s/6);}
93 57 57 96 85 18 62 11 05 71 55 92
15720
/tmp/code.c:1:1: warning: data definition has no type or storage class z=12;a[12];s,q;main(p){for(;z--;z<9&&(a[z]-=a[9+z%3]))scanf("%d",a+z);for(z=3;z--;)s+=a[z]*=a[p=3+-~z%3]*a[q=6+(z+2)%3]-a[q-3]*a[p+3];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[12];s,q;main(p){for(;z--;z<9&&(a[z]-=a[9+z%3]))scanf("%d",a+z);for(z=3;z--;)s+=a[z]*=a[p=3+-~z%3]*a[q=6+(z+2)%3]-a[q-3]*a[p+3];printf("%d",s/6);} ^ /tmp/code.c:1:6: warning: type defaults to 'int' in declaration of 'a' [-Wimplicit-int] /tmp/code.c:1:12: warning: data definition has no type or storage class z=12;a[12];s,q;main(p){for(;z--;z<9&&(a[z]-=a[9+z%3]))scanf("%d",a+z);for(z=3;z--;)s+=a[z]*=a[p=3+-~z%3]*a[q=6+(z+2)%3]-a[q-3]*a[p+3];printf("%d",s/6);} ^ /tmp/code.c:1:12: warning: type defaults to 'int' in declaration of 's' [-Wimplicit-int] /tmp/code.c:1:14: warning: type defaults to 'int' in declaration of 'q' [-Wimplicit-int] z=12;a[12];s,q;main(p){for(;z--;z<9&&(a[z]-=a[9+z%3]))scanf("%d",a+z);for(z=3;z--;)s+=a[z]*=a[p=3+-~z%3]*a[q=6+(z+2)%3]-a[q-3]*a[p+3];printf("%d",s/6);} ^ /tmp/code.c:1:16: warning: return type defaults to 'int' [-Wimplicit-int] z=12;a[12];s,q;main(p){for(;z--;z<9&&(a[z]-=a[9+z%3]))scanf("%d",a+z);for(z=3;z--;)s+=a[z]*=a[p=3+-~z%3]*a[q=6+(z+2)%3]-a[q-3]*a[p+3];printf("%d",s/6);} ^~~~ /tmp/code.c: In function 'main': /tmp/code.c:1:16: warning: type of 'p' defaults to 'int' [-Wimplicit-int] /tmp/code.c:1:36: warning: value computed is not used [-Wunused-value] z=12;a[12];s,q;main(p){for(;z--;z<9&&(a[z]-=a[9+z%3]))scanf("%d",a+z);for(z=3;z--;)s+=a[z]*=a[p=3+-~z%3]*a[q=6+(z+2)%3]-a[q-3]*a[p+3];printf("%d",s/6);} ^~ /tmp/code.c:1:55: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] z=12;a[12];s,q;main(p){for(;z--;z<9&&(a[z]-=a[9+z%3]))scanf("%d",a+z);for(z=3;z--;)s+=a[z]*=a[p=3+-~z%3]*a[q=6+(z+2)%3]-a[q-3]*a[p+3];printf("%d",s/6);} ^~~~~ /tmp/code.c:1:55: warning: incompatible implicit declaration of built-in function 'scanf' /tmp/code.c:1:55: note: include '<stdio.h>' or provide a declaration of 'scanf' /tmp/code.c:1:96: warning: operation on 'p' may be undefined [-Wsequence-point] z=12;a[12];s,q;main(p){for(;z--;z<9&&(a[z]-=a[9+z%3]))scanf("%d",a+z);for(z=3;z--;)s+=a[z]*=a[p=3+-~z%3]*a[q=6+(z+2)%3]-a[q-3]*a[p+3];printf("%d",s/6);} ~^~~~~~~~ /tmp/code.c:1:109: warning: operation on 'q' may be undefined [-Wsequence-point] z=12;a[12];s,q;main(p){for(;z--;z<9&&(a[z]-=a[9+z%3]))scanf("%d",a+z);for(z=3;z--;)s+=a[z]*=a[p=3+-~z%3]*a[q=6+(z+2)%3]-a[q-3]*a[p+3];printf("%d",s/6);} ~^~~~~~~~~~ /tmp/code.c:1:135: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration] z=12;a[12];s,q;main(p){for(;z--;z<9&&(a[z]-=a[9+z%3]))scanf("%d",a+z);for(z=3;z--;)s+=a[z]*=a[p=3+-~z%3]*a[q=6+(z+2)%3]-a[q-3]*a[p+3];printf("%d",s/6);} ^~~~~~ /tmp/code.c:1:135: warning: incompatible implicit declaration of built-in function 'printf' /tmp/code.c:1:135: note: include '<stdio.h>' or provide a declaration of 'printf'