by@moratorium08
WA
511ms
main(i,a){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);}
37 03 04 65 79 12 95 91 42 96 84 12
/tmp/code.c:1:1: warning: return type defaults to 'int' [-Wimplicit-int] main(i,a){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:1: warning: type of 'i' defaults to 'int' [-Wimplicit-int] /tmp/code.c:1:1: warning: type of 'a' defaults to 'int' [-Wimplicit-int] /tmp/code.c:1:29: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] main(i,a){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:29: warning: incompatible implicit declaration of built-in function 'scanf' /tmp/code.c:1:29: note: include '<stdio.h>' or provide a declaration of 'scanf' /tmp/code.c:1:43: error: subscripted value is neither array nor pointer nor vector main(i,a){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:49: error: subscripted value is neither array nor pointer nor vector main(i,a){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:55: error: subscripted value is neither array nor pointer nor vector main(i,a){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:68: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration] main(i,a){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:68: warning: incompatible implicit declaration of built-in function 'printf' /tmp/code.c:1:68: note: include '<stdio.h>' or provide a declaration of 'printf' /tmp/code.c:1:84: error: subscripted value is neither array nor pointer nor vector main(i,a){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:89: error: subscripted value is neither array nor pointer nor vector main(i,a){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:94: error: subscripted value is neither array nor pointer nor vector main(i,a){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:100: error: subscripted value is neither array nor pointer nor vector main(i,a){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:105: error: subscripted value is neither array nor pointer nor vector main(i,a){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:110: error: subscripted value is neither array nor pointer nor vector main(i,a){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:115: error: subscripted value is neither array nor pointer nor vector main(i,a){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:120: error: subscripted value is neither array nor pointer nor vector main(i,a){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:126: error: subscripted value is neither array nor pointer nor vector main(i,a){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:131: error: subscripted value is neither array nor pointer nor vector main(i,a){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:136: error: subscripted value is neither array nor pointer nor vector main(i,a){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:141: error: subscripted value is neither array nor pointer nor vector main(i,a){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:146: error: subscripted value is neither array nor pointer nor vector main(i,a){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:151: error: subscripted value is neither array nor pointer nor vector main(i,a){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:157: error: subscripted value is neither array nor pointer nor vector main(i,a){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:162: error: subscripted value is neither array nor pointer nor vector main(i,a){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:167: error: subscripted value is neither array nor pointer nor vector main(i,a){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:173: error: subscripted value is neither array nor pointer nor vector main(i,a){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);} ^ /bin/script: line 16: /tmp/code: not found rm: can't remove '/tmp/code': No such file or directory