Result

WA

Duration

772ms

Code [DL]

b;char c[9],d[9];main(){gets(c);while(gets(d))puts(c);for(;d[++b]-75;);for(;c[b]-84;)++c[b++];puts(c);}

stdin

                                      T           
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                           K                      

stdout

                                                                  
                                                                  
                                                                  
                                                                  
                                                                  
                                                                  
                                                                  
                                                                  
                                                                  
                                                                  
                                                                  
                                                                  
                                                                  
                                                                  
                                                                  
                                                                  
                                                                  

stderr

/tmp/code.c:1:1: warning: data definition has no type or storage class
 b;char c[9],d[9];main(){gets(c);while(gets(d))puts(c);for(;d[++b]-75;);for(;c[b]-84;)++c[b++];puts(c);}
 ^
/tmp/code.c:1:1: warning: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
/tmp/code.c:1:18: warning: return type defaults to 'int' [-Wimplicit-int]
 b;char c[9],d[9];main(){gets(c);while(gets(d))puts(c);for(;d[++b]-75;);for(;c[b]-84;)++c[b++];puts(c);}
                  ^~~~
/tmp/code.c: In function 'main':
/tmp/code.c:1:25: warning: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
 b;char c[9],d[9];main(){gets(c);while(gets(d))puts(c);for(;d[++b]-75;);for(;c[b]-84;)++c[b++];puts(c);}
                         ^~~~
/tmp/code.c:1:47: warning: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
 b;char c[9],d[9];main(){gets(c);while(gets(d))puts(c);for(;d[++b]-75;);for(;c[b]-84;)++c[b++];puts(c);}
                                               ^~~~
Segmentation fault (core dumped)

strace