Result

WA

Duration

485ms

Code [DL]

int main(){char s,i;for(i=0;;i++){scanf("%s",&s);printf("%d",s[i]>'a'?0:1);}}

stdin

ABCDEFGHiJKLMNopQRSTUVWXYZ

stdout

stderr

/tmp/code.c: In function 'main':
/tmp/code.c:1:35: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | int main(){char s,i;for(i=0;;i++){scanf("%s",&s);printf("%d",s[i]>'a'?0:1);}}
      |                                   ^~~~~
/tmp/code.c:1:35: warning: incompatible implicit declaration of built-in function 'scanf'
/tmp/code.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){char s,i;for(i=0;;i++){scanf("%s",&s);printf("%d",s[i]>'a'?0:1);}}
/tmp/code.c:1:50: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | int main(){char s,i;for(i=0;;i++){scanf("%s",&s);printf("%d",s[i]>'a'?0:1);}}
      |                                                  ^~~~~~
/tmp/code.c:1:50: warning: incompatible implicit declaration of built-in function 'printf'
/tmp/code.c:1:50: note: include '<stdio.h>' or provide a declaration of 'printf'
/tmp/code.c:1:63: error: subscripted value is neither array nor pointer nor vector
    1 | int main(){char s,i;for(i=0;;i++){scanf("%s",&s);printf("%d",s[i]>'a'?0:1);}}
      |                                                               ^
/root/script: line 7: /tmp/code: not found
rm: can't remove '/tmp/code': No such file or directory

strace

13    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE.c"], 0x7ffd8bd82368 /* 7 vars */) = 0
14    execve("/usr/bin/realpath", ["realpath", "/volume/CODE.c"], 0x7f5dfda88220 /* 7 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=0, si_stime=0} ---
15    execve("/bin/ln", ["ln", "-sf", "/volume/CODE.c", "/tmp/code.c"], 0x7f5dfda88240 /* 7 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/bin/gcc", ["gcc", "-Wall", "-O2", "-std=c99", "/tmp/code.c", "-o", "/tmp/code", "-lm"], 0x7f5dfda88418 /* 7 vars */) = 0
17    execve("/usr/libexec/gcc/x86_64-alpine-linux-musl/10.2.1/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/ccKKMBoe.s"], 0x515f40 /* 10 vars */) = 0
17    +++ exited with 1 +++
16    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=17, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
16    +++ exited with 1 +++
13    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=16, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
19    execve("/tmp/code", ["/tmp/code"], 0x7f5dfda881f0 /* 7 vars */ <unfinished ...>
18    execve("/bin/cat", ["cat", "-"], 0x7f5dfda88208 /* 7 vars */ <unfinished ...>
19    <... execve resumed>)             = -1 ENOENT (No such file or directory)
19    +++ exited with 127 +++
18    <... execve resumed>)             = 0
13    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=19, si_uid=0, si_status=127, si_utime=0, si_stime=0} ---
18    --- SIGPIPE {si_signo=SIGPIPE, si_code=SI_USER, si_pid=18, si_uid=0} ---
18    +++ killed by SIGPIPE +++
13    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=18, si_uid=0, si_status=SIGPIPE, si_utime=0, si_stime=0} ---
20    execve("/bin/rm", ["rm", "/tmp/code.c", "/tmp/code"], 0x7f5dfda881f0 /* 7 vars */) = 0
20    +++ exited with 1 +++
13    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=20, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
13    +++ exited with 1 +++