by@akouryy1
WA
862ms
a,b;char*c,*d;main(i,j){gets(c=&j);while(gets(d=&a))puts(c);for(;d[++b]!='K';);for(;c[++b]!=84;)++c[b];puts(c);}
T K
T T T T T T T T T T T T T T T T T T T T T T
/tmp/code.c:1:1: warning: data definition has no type or storage class a,b;char*c,*d;main(i,j){gets(c=&j);while(gets(d=&a))puts(c);for(;d[++b]!='K';);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;main(i,j){gets(c=&j);while(gets(d=&a))puts(c);for(;d[++b]!='K';);for(;c[++b]!=84;)++c[b];puts(c);} ^ /tmp/code.c:1:15: warning: return type defaults to 'int' [-Wimplicit-int] a,b;char*c,*d;main(i,j){gets(c=&j);while(gets(d=&a))puts(c);for(;d[++b]!='K';);for(;c[++b]!=84;)++c[b];puts(c);} ^~~~ /tmp/code.c: In function 'main': /tmp/code.c:1:15: warning: type of 'i' defaults to 'int' [-Wimplicit-int] /tmp/code.c:1:15: warning: type of 'j' defaults to 'int' [-Wimplicit-int] /tmp/code.c:1:25: warning: implicit declaration of function 'gets' [-Wimplicit-function-declaration] a,b;char*c,*d;main(i,j){gets(c=&j);while(gets(d=&a))puts(c);for(;d[++b]!='K';);for(;c[++b]!=84;)++c[b];puts(c);} ^~~~ /tmp/code.c:1:31: warning: assignment to 'char *' from incompatible pointer type 'int *' [-Wincompatible-pointer-types] a,b;char*c,*d;main(i,j){gets(c=&j);while(gets(d=&a))puts(c);for(;d[++b]!='K';);for(;c[++b]!=84;)++c[b];puts(c);} ^ /tmp/code.c:1:48: warning: assignment to 'char *' from incompatible pointer type 'int *' [-Wincompatible-pointer-types] a,b;char*c,*d;main(i,j){gets(c=&j);while(gets(d=&a))puts(c);for(;d[++b]!='K';);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;main(i,j){gets(c=&j);while(gets(d=&a))puts(c);for(;d[++b]!='K';);for(;c[++b]!=84;)++c[b];puts(c);} ^~~~ Segmentation fault (core dumped)