by@iliss557_ort
WA
811ms
main(a,b,c){c=100;while(c--){scanf("%d",&a);b=10;while(--b){if(a%b==0&&a/b<10){puts("1")}else{puts("0")}}}return 0;}
47 17 78 94 14 72 67 99 60 79 68 33 38 71 27 53 42 52 92 29 62 77 76 51 38 19 86 46 97 39 11 30 37 22 59 96 95 32 22 69 36 98 90 80 20 49 34 64 41 84 83 65 48 15 44 40 81 56 26 10 70 35 53 27 25 91 66 13 23 88 24 58 73 54 51 55 50 68 74 58 12 61 28 63 87 85 93 16 43 77 89 77 57 21 31 45 82 75 24 18
/tmp/code.c:1:1: warning: return type defaults to 'int' [-Wimplicit-int] main(a,b,c){c=100;while(c--){scanf("%d",&a);b=10;while(--b){if(a%b==0&&a/b<10){puts("1")}else{puts("0")}}}return 0;} ^~~~ /tmp/code.c: In function 'main': /tmp/code.c:1:1: warning: type of 'a' defaults to 'int' [-Wimplicit-int] /tmp/code.c:1:1: warning: type of 'b' defaults to 'int' [-Wimplicit-int] /tmp/code.c:1:1: warning: type of 'c' defaults to 'int' [-Wimplicit-int] /tmp/code.c:1:30: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] main(a,b,c){c=100;while(c--){scanf("%d",&a);b=10;while(--b){if(a%b==0&&a/b<10){puts("1")}else{puts("0")}}}return 0;} ^~~~~ /tmp/code.c:1:30: warning: incompatible implicit declaration of built-in function 'scanf' /tmp/code.c:1:30: note: include '<stdio.h>' or provide a declaration of 'scanf' +#include <stdio.h> main(a,b,c){c=100;while(c--){scanf("%d",&a);b=10;while(--b){if(a%b==0&&a/b<10){puts("1")}else{puts("0")}}}return 0;} ^~~~~ /tmp/code.c:1:80: warning: implicit declaration of function 'puts' [-Wimplicit-function-declaration] main(a,b,c){c=100;while(c--){scanf("%d",&a);b=10;while(--b){if(a%b==0&&a/b<10){puts("1")}else{puts("0")}}}return 0;} ^~~~ /tmp/code.c:1:89: error: expected ';' before '}' token main(a,b,c){c=100;while(c--){scanf("%d",&a);b=10;while(--b){if(a%b==0&&a/b<10){puts("1")}else{puts("0")}}}return 0;} ^ ; /tmp/code.c:1:104: error: expected ';' before '}' token main(a,b,c){c=100;while(c--){scanf("%d",&a);b=10;while(--b){if(a%b==0&&a/b<10){puts("1")}else{puts("0")}}}return 0;} ^ ; /root/script: line 7: /tmp/code: not found rm: can't remove '/tmp/code': No such file or directory
11 execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE.c"], 0x7ffebf137170 /* 7 vars */) = 0 12 execve("/usr/bin/realpath", ["realpath", "/volume/CODE.c"], 0x55cd6be74d20 /* 7 vars */) = 0 12 +++ exited with 0 +++ 11 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=12, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 13 execve("/bin/ln", ["ln", "-sf", "/volume/CODE.c", "/tmp/code.c"], 0x55cd6be74d40 /* 7 vars */) = 0 13 +++ exited with 0 +++ 11 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 14 execve("/usr/bin/gcc", ["gcc", "-Wall", "-O2", "-std=c99", "/tmp/code.c", "-o", "/tmp/code", "-lm"], 0x55cd6dcbb118 /* 7 vars */) = 0 15 execve("/usr/libexec/gcc/x86_64-alpine-linux-musl/8.3.0/cc1", ["/usr/libexec/gcc/x86_64-alpine-l"..., "-quiet", "/tmp/code.c", "-quiet", "-dumpbase", "code.c", "-mtune=generic", "-march=x86-64", "-auxbase", "code", "-O2", "-Wall", "-std=c99", "-o", "/tmp/ccaihHIh.s"], 0x2088d40 /* 10 vars */) = 0 15 +++ exited with 1 +++ 14 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=15, si_uid=0, si_status=1, si_utime=0, si_stime=0} --- 14 +++ exited with 1 +++ 11 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=14, si_uid=0, si_status=1, si_utime=0, si_stime=0} --- 16 execve("/bin/cat", ["cat", "-"], 0x55cd6be74d08 /* 7 vars */ <unfinished ...> 17 execve("/tmp/code", ["/tmp/code"], 0x55cd6be74cf0 /* 7 vars */) = -1 ENOENT (No such file or directory) 17 +++ exited with 127 +++ 11 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=17, si_uid=0, si_status=127, si_utime=0, si_stime=0} --- 16 <... execve resumed> ) = 0 16 --- SIGPIPE {si_signo=SIGPIPE, si_code=SI_USER, si_pid=16, si_uid=0} --- 16 +++ killed by SIGPIPE +++ 11 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=16, si_uid=0, si_status=SIGPIPE, si_utime=0, si_stime=0} --- 18 execve("/bin/rm", ["rm", "/tmp/code.c", "/tmp/code"], 0x55cd6be74cf0 /* 7 vars */) = 0 18 +++ exited with 1 +++ 11 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=18, si_uid=0, si_status=1, si_utime=0, si_stime=0} --- 11 +++ exited with 1 +++