Result

AC

Duration

3112ms

Code [DL]

s[90];main(p,i,q,r){gets(s);p=strchr(s,84)-(int)s;for(;gets(s),i=p;){r=(int)s;for(;i--;)putchar(32);puts("*");q=strchr(s,75);if(q){for(i=q-r;i--;)putchar(32);for(r+=p-q+1;r--;)putchar(42);break;}}}

stdin

                  T                               
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
   K                                              

stdout

                  *
                  *
                  *
                  *
                  *
                  *
                  *
                  *
                  *
                  *
                  *
                  *
                  *
                  *
                  *
                  *
                  *
                  *
                  *
                  *
                  *
                  *
                  *
                  *
                  *
                  *
                  *
                  *
   ****************

stderr

/tmp/code.c:1:1: warning: data definition has no type or storage class
 s[90];main(p,i,q,r){gets(s);p=strchr(s,84)-(int)s;for(;gets(s),i=p;){r=(int)s;for(;i--;)putchar(32);puts("*");q=strchr(s,75);if(q){for(i=q-r;i--;)putchar(32);for(r+=p-q+1;r--;)putchar(42);break;}}}
 ^
/tmp/code.c:1:1: warning: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
/tmp/code.c:1:7: warning: return type defaults to 'int' [-Wimplicit-int]
 s[90];main(p,i,q,r){gets(s);p=strchr(s,84)-(int)s;for(;gets(s),i=p;){r=(int)s;for(;i--;)putchar(32);puts("*");q=strchr(s,75);if(q){for(i=q-r;i--;)putchar(32);for(r+=p-q+1;r--;)putchar(42);break;}}}
       ^~~~
/tmp/code.c: In function 'main':
/tmp/code.c:1:7: warning: type of 'p' defaults to 'int' [-Wimplicit-int]
/tmp/code.c:1:7: warning: type of 'i' defaults to 'int' [-Wimplicit-int]
/tmp/code.c:1:7: warning: type of 'q' defaults to 'int' [-Wimplicit-int]
/tmp/code.c:1:7: warning: type of 'r' defaults to 'int' [-Wimplicit-int]
/tmp/code.c:1:21: warning: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
 s[90];main(p,i,q,r){gets(s);p=strchr(s,84)-(int)s;for(;gets(s),i=p;){r=(int)s;for(;i--;)putchar(32);puts("*");q=strchr(s,75);if(q){for(i=q-r;i--;)putchar(32);for(r+=p-q+1;r--;)putchar(42);break;}}}
                     ^~~~
/tmp/code.c:1:31: warning: implicit declaration of function 'strchr' [-Wimplicit-function-declaration]
 s[90];main(p,i,q,r){gets(s);p=strchr(s,84)-(int)s;for(;gets(s),i=p;){r=(int)s;for(;i--;)putchar(32);puts("*");q=strchr(s,75);if(q){for(i=q-r;i--;)putchar(32);for(r+=p-q+1;r--;)putchar(42);break;}}}
                               ^~~~~~
/tmp/code.c:1:31: warning: incompatible implicit declaration of built-in function 'strchr'
/tmp/code.c:1:31: note: include '<string.h>' or provide a declaration of 'strchr'
+#include <string.h>
 s[90];main(p,i,q,r){gets(s);p=strchr(s,84)-(int)s;for(;gets(s),i=p;){r=(int)s;for(;i--;)putchar(32);puts("*");q=strchr(s,75);if(q){for(i=q-r;i--;)putchar(32);for(r+=p-q+1;r--;)putchar(42);break;}}}
                               ^~~~~~
/tmp/code.c:1:38: warning: passing argument 1 of 'strchr' from incompatible pointer type [-Wincompatible-pointer-types]
 s[90];main(p,i,q,r){gets(s);p=strchr(s,84)-(int)s;for(;gets(s),i=p;){r=(int)s;for(;i--;)putchar(32);puts("*");q=strchr(s,75);if(q){for(i=q-r;i--;)putchar(32);for(r+=p-q+1;r--;)putchar(42);break;}}}
                                      ^
/tmp/code.c:1:38: note: expected 'const char *' but argument is of type 'int *'
/tmp/code.c:1:44: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 s[90];main(p,i,q,r){gets(s);p=strchr(s,84)-(int)s;for(;gets(s),i=p;){r=(int)s;for(;i--;)putchar(32);puts("*");q=strchr(s,75);if(q){for(i=q-r;i--;)putchar(32);for(r+=p-q+1;r--;)putchar(42);break;}}}
                                            ^
/tmp/code.c:1:30: warning: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
 s[90];main(p,i,q,r){gets(s);p=strchr(s,84)-(int)s;for(;gets(s),i=p;){r=(int)s;for(;i--;)putchar(32);puts("*");q=strchr(s,75);if(q){for(i=q-r;i--;)putchar(32);for(r+=p-q+1;r--;)putchar(42);break;}}}
                              ^
/tmp/code.c:1:72: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 s[90];main(p,i,q,r){gets(s);p=strchr(s,84)-(int)s;for(;gets(s),i=p;){r=(int)s;for(;i--;)putchar(32);puts("*");q=strchr(s,75);if(q){for(i=q-r;i--;)putchar(32);for(r+=p-q+1;r--;)putchar(42);break;}}}
                                                                        ^
/tmp/code.c:1:89: warning: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
 s[90];main(p,i,q,r){gets(s);p=strchr(s,84)-(int)s;for(;gets(s),i=p;){r=(int)s;for(;i--;)putchar(32);puts("*");q=strchr(s,75);if(q){for(i=q-r;i--;)putchar(32);for(r+=p-q+1;r--;)putchar(42);break;}}}
                                                                                         ^~~~~~~
/tmp/code.c:1:101: warning: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
 s[90];main(p,i,q,r){gets(s);p=strchr(s,84)-(int)s;for(;gets(s),i=p;){r=(int)s;for(;i--;)putchar(32);puts("*");q=strchr(s,75);if(q){for(i=q-r;i--;)putchar(32);for(r+=p-q+1;r--;)putchar(42);break;}}}
                                                                                                     ^~~~
/tmp/code.c:1:120: warning: passing argument 1 of 'strchr' from incompatible pointer type [-Wincompatible-pointer-types]
 s[90];main(p,i,q,r){gets(s);p=strchr(s,84)-(int)s;for(;gets(s),i=p;){r=(int)s;for(;i--;)putchar(32);puts("*");q=strchr(s,75);if(q){for(i=q-r;i--;)putchar(32);for(r+=p-q+1;r--;)putchar(42);break;}}}
                                                                                                                        ^
/tmp/code.c:1:120: note: expected 'const char *' but argument is of type 'int *'
/tmp/code.c:1:112: warning: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
 s[90];main(p,i,q,r){gets(s);p=strchr(s,84)-(int)s;for(;gets(s),i=p;){r=(int)s;for(;i--;)putchar(32);puts("*");q=strchr(s,75);if(q){for(i=q-r;i--;)putchar(32);for(r+=p-q+1;r--;)putchar(42);break;}}}
                                                                                                                ^

strace