Result

WA

Duration

888ms

Code [DL]

main(a,b,c,d){
	c=100;
	while(c--){
		scanf("%d",&a);
		b=10;
		d=0;
		while(--b){
			if(a%b==0&&a/b<10){
			d=1;
			break;
			}
		}
		puts(d);
	}
	return 0;
}

stdin

96
66
46
88
62
73
30
71
66
44
19
59
84
11
91
48
23
99
47
60
38
26
69
54
37
14
97
85
64
36
94
35
29
78
82
65
32
87
57
66
77
22
77
15
75
83
93
49
45
61
76
46
28
56
74
63
95
16
51
25
68
41
37
40
17
55
13
87
62
24
27
20
34
53
98
89
42
67
31
79
50
58
18
52
33
72
79
10
80
43
39
92
21
81
70
20
16
90
86
12

stdout

stderr

/tmp/code.c:1:1: warning: return type defaults to 'int' [-Wimplicit-int]
 main(a,b,c,d){
 ^~~~
/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:1: warning: type of 'd' 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,d){
/tmp/code.c:4:3:
   scanf("%d",&a);
   ^~~~~
/tmp/code.c:13:3: warning: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
   puts(d);
   ^~~~
Segmentation fault (core dumped)

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE.c"], 0x7ffcc924bcc0 /* 7 vars */) = 0
11    execve("/usr/bin/realpath", ["realpath", "/volume/CODE.c"], 0x55576f832d20 /* 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"], 0x55576f832d40 /* 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"], 0x555771504118 /* 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/ccEEiBah.s"], 0x1f2ed40 /* 10 vars */) = 0
14    +++ exited with 0 +++
13    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=14, si_uid=0, si_status=0, si_utime=2, si_stime=0} ---
15    execve("/usr/lib/gcc/x86_64-alpine-linux-musl/8.3.0/../../../../x86_64-alpine-linux-musl/bin/as", ["/usr/lib/gcc/x86_64-alpine-linux"..., "--64", "-o", "/tmp/ccOoHkAI.o", "/tmp/ccEEiBah.s"], 0x1f2ed40 /* 10 vars */) = 0
15    +++ exited with 0 +++
13    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=15, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
16    execve("/usr/libexec/gcc/x86_64-alpine-linux-musl/8.3.0/collect2", ["/usr/libexec/gcc/x86_64-alpine-l"..., "-plugin", "/usr/libexec/gcc/x86_64-alpine-l"..., "-plugin-opt=/usr/libexec/gcc/x86"..., "-plugin-opt=-fresolution=/tmp/cc"..., "-plugin-opt=-pass-through=-lgcc", "-plugin-opt=-pass-through=-lgcc_"..., "-plugin-opt=-pass-through=-lc", "-plugin-opt=-pass-through=-lgcc", "-plugin-opt=-pass-through=-lgcc_"..., "--eh-frame-hdr", "--hash-style=gnu", "-m", "elf_x86_64", "--as-needed", "-dynamic-linker", "/lib/ld-musl-x86_64.so.1", "-pie", "-z", "relro", "-z", "now", "-o", "/tmp/code", "/usr/lib/gcc/x86_64-alpine-linux"..., "/usr/lib/gcc/x86_64-alpine-linux"..., "/usr/lib/gcc/x86_64-alpine-linux"..., "-L/usr/lib/gcc/x86_64-alpine-lin"..., "-L/usr/lib/gcc/x86_64-alpine-lin"..., "-L/usr/lib/gcc/x86_64-alpine-lin"..., "-L/lib/../lib", "-L/usr/lib/../lib", ...], 0x1f2ed40 /* 12 vars */) = 0
17    execve("/usr/lib/gcc/x86_64-alpine-linux-musl/8.3.0/../../../../x86_64-alpine-linux-musl/bin/ld", ["/usr/lib/gcc/x86_64-alpine-linux"..., "-plugin", "/usr/libexec/gcc/x86_64-alpine-l"..., "-plugin-opt=/usr/libexec/gcc/x86"..., "-plugin-opt=-fresolution=/tmp/cc"..., "-plugin-opt=-pass-through=-lgcc", "-plugin-opt=-pass-through=-lgcc_"..., "-plugin-opt=-pass-through=-lc", "-plugin-opt=-pass-through=-lgcc", "-plugin-opt=-pass-through=-lgcc_"..., "--eh-frame-hdr", "--hash-style=gnu", "-m", "elf_x86_64", "--as-needed", "-dynamic-linker", "/lib/ld-musl-x86_64.so.1", "-pie", "-z", "relro", "-z", "now", "-o", "/tmp/code", "/usr/lib/gcc/x86_64-alpine-linux"..., "/usr/lib/gcc/x86_64-alpine-linux"..., "/usr/lib/gcc/x86_64-alpine-linux"..., "-L/usr/lib/gcc/x86_64-alpine-lin"..., "-L/usr/lib/gcc/x86_64-alpine-lin"..., "-L/usr/lib/gcc/x86_64-alpine-lin"..., "-L/lib/../lib", "-L/usr/lib/../lib", ...], 0x7ffdb28438c0 /* 12 vars */) = 0
17    +++ exited with 0 +++
16    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=17, si_uid=0, si_status=0, si_utime=0, si_stime=1} ---
16    +++ exited with 0 +++
13    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=16, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
13    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
18    execve("/bin/cat", ["cat", "-"], 0x55576f832d08 /* 7 vars */ <unfinished ...>
19    execve("/tmp/code", ["/tmp/code"], 0x55576f832cf0 /* 7 vars */ <unfinished ...>
18    <... execve resumed> )            = 0
19    <... execve resumed> )            = 0
19    --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} ---
19    +++ killed by SIGSEGV (core dumped) +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_DUMPED, si_pid=19, si_uid=0, si_status=SIGSEGV, si_utime=0, si_stime=0} ---
18    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=18, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
20    execve("/bin/rm", ["rm", "/tmp/code.c", "/tmp/code"], 0x55576f832cf0 /* 7 vars */) = 0
20    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=20, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
10    +++ exited with 0 +++