by@iliss557_ort
WA
911ms
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;}
70 80 17 98 65 46 39 53 44 87 25 54 39 72 88 96 60 35 28 42 91 77 32 78 47 16 92 33 97 59 13 34 37 24 56 26 58 20 38 86 71 82 36 14 27 73 79 50 23 99 52 55 21 67 90 19 59 43 41 28 45 81 10 68 34 89 24 83 72 82 85 40 66 30 31 22 28 26 51 12 62 95 75 76 94 74 69 29 49 57 19 64 11 48 84 15 93 61 63 18
/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;} ^ ; /tmp/code.c:1:1: error: expected declaration or statement at end of input 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
10 execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE.c"], 0x7ffcd5547d50 /* 7 vars */) = 0 11 execve("/usr/bin/realpath", ["realpath", "/volume/CODE.c"], 0x563ba2f0ad20 /* 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"], 0x563ba2f0ad40 /* 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"], 0x563ba4a54118 /* 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/ccNOoeoi.s"], 0xa65d40 /* 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=1, 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", "-"], 0x563ba2f0ad08 /* 7 vars */ <unfinished ...> 16 execve("/tmp/code", ["/tmp/code"], 0x563ba2f0acf0 /* 7 vars */) = -1 ENOENT (No such file or directory) 16 +++ exited with 127 +++ 15 <... execve resumed> ) = 0 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"], 0x563ba2f0acf0 /* 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 +++