Result

WA

Duration

843ms

Code [DL]

a,b;char c[99],d[99];main(i,j){gets(c=&j);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
 a,b;char c[99],d[99];main(i,j){gets(c=&j);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 'a' [-Wimplicit-int]
/tmp/code.c:1:3: warning: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
 a,b;char c[99],d[99];main(i,j){gets(c=&j);while(gets(d))puts(c);for(;d[++b]-75;);for(;c[b]-84;)++c[b++];puts(c);}
   ^
/tmp/code.c:1:22: warning: return type defaults to 'int' [-Wimplicit-int]
 a,b;char c[99],d[99];main(i,j){gets(c=&j);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:22: warning: type of 'i' defaults to 'int' [-Wimplicit-int]
/tmp/code.c:1:22: warning: type of 'j' defaults to 'int' [-Wimplicit-int]
/tmp/code.c:1:32: warning: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
 a,b;char c[99],d[99];main(i,j){gets(c=&j);while(gets(d))puts(c);for(;d[++b]-75;);for(;c[b]-84;)++c[b++];puts(c);}
                                ^~~~
/tmp/code.c:1:38: error: assignment to expression with array type
 a,b;char c[99],d[99];main(i,j){gets(c=&j);while(gets(d))puts(c);for(;d[++b]-75;);for(;c[b]-84;)++c[b++];puts(c);}
                                      ^
/tmp/code.c:1:57: warning: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
 a,b;char c[99],d[99];main(i,j){gets(c=&j);while(gets(d))puts(c);for(;d[++b]-75;);for(;c[b]-84;)++c[b++];puts(c);}
                                                         ^~~~
/root/script: line 7: /tmp/code: not found
rm: can't remove '/tmp/code': No such file or directory

strace