by@_gacin
WA
507ms
z;a[z=12];s,p;main(q){for(;z--;)scanf("%d",a+z);for(z=9;z--;)a[z]-=a[9+z%3];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);}
84 29 24 81 39 98 16 31 05 03 29 60
/tmp/code.c:1:1: warning: data definition has no type or storage class z;a[z=12];s,p;main(q){for(;z--;)scanf("%d",a+z);for(z=9;z--;)a[z]-=a[9+z%3];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:3: warning: data definition has no type or storage class z;a[z=12];s,p;main(q){for(;z--;)scanf("%d",a+z);for(z=9;z--;)a[z]-=a[9+z%3];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:3: warning: type defaults to 'int' in declaration of 'a' [-Wimplicit-int] /tmp/code.c:1:3: error: variably modified 'a' at file scope /tmp/code.c:1:11: warning: data definition has no type or storage class z;a[z=12];s,p;main(q){for(;z--;)scanf("%d",a+z);for(z=9;z--;)a[z]-=a[9+z%3];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:11: warning: type defaults to 'int' in declaration of 's' [-Wimplicit-int] /tmp/code.c:1:13: warning: type defaults to 'int' in declaration of 'p' [-Wimplicit-int] z;a[z=12];s,p;main(q){for(;z--;)scanf("%d",a+z);for(z=9;z--;)a[z]-=a[9+z%3];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:15: warning: return type defaults to 'int' [-Wimplicit-int] z;a[z=12];s,p;main(q){for(;z--;)scanf("%d",a+z);for(z=9;z--;)a[z]-=a[9+z%3];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:15: warning: type of 'q' defaults to 'int' [-Wimplicit-int] /tmp/code.c:1:33: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] z;a[z=12];s,p;main(q){for(;z--;)scanf("%d",a+z);for(z=9;z--;)a[z]-=a[9+z%3];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:33: warning: incompatible implicit declaration of built-in function 'scanf' /tmp/code.c:1:33: note: include '<stdio.h>' or provide a declaration of 'scanf' /tmp/code.c:1:102: warning: operation on 'p' may be undefined [-Wsequence-point] z;a[z=12];s,p;main(q){for(;z--;)scanf("%d",a+z);for(z=9;z--;)a[z]-=a[9+z%3];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:115: warning: operation on 'q' may be undefined [-Wsequence-point] z;a[z=12];s,p;main(q){for(;z--;)scanf("%d",a+z);for(z=9;z--;)a[z]-=a[9+z%3];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:141: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration] z;a[z=12];s,p;main(q){for(;z--;)scanf("%d",a+z);for(z=9;z--;)a[z]-=a[9+z%3];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:141: warning: incompatible implicit declaration of built-in function 'printf' /tmp/code.c:1:141: note: include '<stdio.h>' or provide a declaration of 'printf' /bin/script: line 16: /tmp/code: not found rm: can't remove '/tmp/code': No such file or directory