Result

WA

Duration

718ms

Code [DL]

a,b;char*c,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

               T                                  

stderr

/tmp/code.c:1:1: warning: data definition has no type or storage class
 a,b;char*c,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,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:18: warning: return type defaults to 'int' [-Wimplicit-int]
 a,b;char*c,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:18: warning: type of 'i' defaults to 'int' [-Wimplicit-int]
/tmp/code.c:1:18: warning: type of 'j' defaults to 'int' [-Wimplicit-int]
/tmp/code.c:1:28: warning: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
 a,b;char*c,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:34: warning: assignment to 'char *' from incompatible pointer type 'int *' [-Wincompatible-pointer-types]
 a,b;char*c,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:53: warning: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
 a,b;char*c,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);}
                                                     ^~~~
Segmentation fault (core dumped)

strace