by@iliss557_ort
WA
790ms
main(a,b,c){ c=100; while(c--){ scanf("%d",&a); b=10; while(--b){ if(a%b==0&&a/b<10){ d=1; break; } } puts(d); } return 0; }
32 80 74 91 28 13 40 51 17 21 59 19 66 95 83 37 99 73 33 99 20 16 43 89 98 54 29 49 60 78 62 31 29 84 76 78 77 53 88 68 55 58 85 62 36 40 79 87 71 14 94 75 26 64 41 27 35 39 44 12 56 70 82 52 57 42 30 11 90 50 66 86 24 61 15 65 97 65 72 55 38 93 92 69 96 46 93 23 48 18 25 22 80 34 81 63 45 10 67 47
/tmp/code.c:1:1: warning: return type defaults to 'int' [-Wimplicit-int] main(a,b,c){ ^~~~ /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:4:3: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] scanf("%d",&a); ^~~~~ /tmp/code.c:4:3: warning: incompatible implicit declaration of built-in function 'scanf' /tmp/code.c:4:3: note: include '<stdio.h>' or provide a declaration of 'scanf' /tmp/code.c:1:1: +#include <stdio.h> main(a,b,c){ /tmp/code.c:4:3: scanf("%d",&a); ^~~~~ /tmp/code.c:8:4: error: 'd' undeclared (first use in this function) d=1; ^ /tmp/code.c:8:4: note: each undeclared identifier is reported only once for each function it appears in /tmp/code.c:12:3: warning: implicit declaration of function 'puts' [-Wimplicit-function-declaration] puts(d); ^~~~ /root/script: line 7: /tmp/code: not found rm: can't remove '/tmp/code': No such file or directory
10 execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE.c"], 0x7ffe4025eb00 /* 7 vars */) = 0 11 execve("/usr/bin/realpath", ["realpath", "/volume/CODE.c"], 0x5646b648ed20 /* 7 vars */) = 0 11 +++ exited with 0 +++ 10 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=11, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 12 execve("/bin/ln", ["ln", "-sf", "/volume/CODE.c", "/tmp/code.c"], 0x5646b648ed40 /* 7 vars */) = 0 12 +++ exited with 0 +++ 10 --- 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("/usr/bin/gcc", ["gcc", "-Wall", "-O2", "-std=c99", "/tmp/code.c", "-o", "/tmp/code", "-lm"], 0x5646b7bcf118 /* 7 vars */) = 0 14 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/ccmPFmpk.s"], 0xd02d40 /* 10 vars */) = 0 14 +++ exited with 1 +++ 13 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=14, si_uid=0, si_status=1, si_utime=0, si_stime=0} --- 13 +++ exited with 1 +++ 10 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=1, si_utime=0, si_stime=0} --- 15 execve("/bin/cat", ["cat", "-"], 0x5646b648ed08 /* 7 vars */ <unfinished ...> 16 execve("/tmp/code", ["/tmp/code"], 0x5646b648ecf0 /* 7 vars */) = -1 ENOENT (No such file or directory) 16 +++ exited with 127 +++ 10 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=16, si_uid=0, si_status=127, si_utime=0, si_stime=0} --- 15 <... execve resumed> ) = 0 15 --- SIGPIPE {si_signo=SIGPIPE, si_code=SI_USER, si_pid=15, si_uid=0} --- 15 +++ killed by SIGPIPE +++ 10 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=15, si_uid=0, si_status=SIGPIPE, si_utime=0, si_stime=0} --- 17 execve("/bin/rm", ["rm", "/tmp/code.c", "/tmp/code"], 0x5646b648ecf0 /* 7 vars */) = 0 17 +++ exited with 1 +++ 10 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=17, si_uid=0, si_status=1, si_utime=0, si_stime=0} --- 10 +++ exited with 1 +++