Result

WA

Duration

504ms

Code [DL]

nt i,j,a[12];main(){for(i=0;i<12;i++){scanf("%d", &a[i]);a[i]-=a[i%3]*(i>2);}printf("%d\n",(a[3]*a[7]*a[11]+a[4]*a[8]*a[9]+a[5]*a[10]*a[6]-a[5]*a[7]*a[9]-a[8]*a[10]*a[3]-a[4]*a[11]*a[6])/6);}

stdin

23 36 72
07 82 29
11 79 76
53 95 23

stdout

stderr

/tmp/code.c:1:1: error: unknown type name 'nt'
 nt i,j,a[12];main(){for(i=0;i<12;i++){scanf("%d", &a[i]);a[i]-=a[i%3]*(i>2);}printf("%d\n",(a[3]*a[7]*a[11]+a[4]*a[8]*a[9]+a[5]*a[10]*a[6]-a[5]*a[7]*a[9]-a[8]*a[10]*a[3]-a[4]*a[11]*a[6])/6);}
 ^~
/tmp/code.c:1:14: warning: return type defaults to 'int' [-Wimplicit-int]
 nt i,j,a[12];main(){for(i=0;i<12;i++){scanf("%d", &a[i]);a[i]-=a[i%3]*(i>2);}printf("%d\n",(a[3]*a[7]*a[11]+a[4]*a[8]*a[9]+a[5]*a[10]*a[6]-a[5]*a[7]*a[9]-a[8]*a[10]*a[3]-a[4]*a[11]*a[6])/6);}
              ^~~~
/tmp/code.c: In function 'main':
/tmp/code.c:1:39: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
 nt i,j,a[12];main(){for(i=0;i<12;i++){scanf("%d", &a[i]);a[i]-=a[i%3]*(i>2);}printf("%d\n",(a[3]*a[7]*a[11]+a[4]*a[8]*a[9]+a[5]*a[10]*a[6]-a[5]*a[7]*a[9]-a[8]*a[10]*a[3]-a[4]*a[11]*a[6])/6);}
                                       ^~~~~
/tmp/code.c:1:39: warning: incompatible implicit declaration of built-in function 'scanf'
/tmp/code.c:1:39: note: include '<stdio.h>' or provide a declaration of 'scanf'
/tmp/code.c:1:78: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
 nt i,j,a[12];main(){for(i=0;i<12;i++){scanf("%d", &a[i]);a[i]-=a[i%3]*(i>2);}printf("%d\n",(a[3]*a[7]*a[11]+a[4]*a[8]*a[9]+a[5]*a[10]*a[6]-a[5]*a[7]*a[9]-a[8]*a[10]*a[3]-a[4]*a[11]*a[6])/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'
/bin/script: line 16: /tmp/code: not found
rm: can't remove '/tmp/code': No such file or directory

strace