Result

WA

Duration

861ms

Code [DL]

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

stdin

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

stdout

stderr

/tmp/code.c:1:1: warning: return type defaults to 'int' [-Wimplicit-int]
 main(a,b,c){c=100;while(c--){scanf(&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(&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(&a);b=10;while(--b){if(a%b==0&&a/b<10){puts("1")}else{puts("0")}}}return 0;}
                              ^~~~~
/tmp/code.c:1:36: warning: passing argument 1 of 'scanf' from incompatible pointer type [-Wincompatible-pointer-types]
 main(a,b,c){c=100;while(c--){scanf(&a);b=10;while(--b){if(a%b==0&&a/b<10){puts("1")}else{puts("0")}}}return 0;}
                                    ^~
/tmp/code.c:1:36: note: expected 'const char *' but argument is of type 'int *'
/tmp/code.c:1:75: warning: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
 main(a,b,c){c=100;while(c--){scanf(&a);b=10;while(--b){if(a%b==0&&a/b<10){puts("1")}else{puts("0")}}}return 0;}
                                                                           ^~~~
/tmp/code.c:1:84: error: expected ';' before '}' token
 main(a,b,c){c=100;while(c--){scanf(&a);b=10;while(--b){if(a%b==0&&a/b<10){puts("1")}else{puts("0")}}}return 0;}
                                                                                    ^
                                                                                    ;
/tmp/code.c:1:99: error: expected ';' before '}' token
 main(a,b,c){c=100;while(c--){scanf(&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

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE.c"], 0x7ffd8e653b30 /* 7 vars */) = 0
11    execve("/usr/bin/realpath", ["realpath", "/volume/CODE.c"], 0x560362e0cd20 /* 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"], 0x560362e0cd40 /* 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"], 0x560364222118 /* 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/cchaEaOK.s"], 0xafdd40 /* 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", "-"], 0x560362e0cd08 /* 7 vars */ <unfinished ...>
16    execve("/tmp/code", ["/tmp/code"], 0x560362e0ccf0 /* 7 vars */ <unfinished ...>
15    <... execve resumed> )            = 0
16    <... execve resumed> )            = -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    --- 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"], 0x560362e0ccf0 /* 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 +++