by@pizzacat83a
WA
2599ms
s[90];main(p,i,q,r){gets(s);r=(int)s;p=strchr(s,84)-r;for(;gets(s),i=p;){for(;i--;)putchar(32);puts("*");q=strchr(s,75);if(q){for(i=q-r;i--;)putchar(32);for(r+=p-q;~--r;)putchar(42);break;}}}
T K
* * * ****
/tmp/code.c:1:1: warning: data definition has no type or storage class s[90];main(p,i,q,r){gets(s);r=(int)s;p=strchr(s,84)-r;for(;gets(s),i=p;){for(;i--;)putchar(32);puts("*");q=strchr(s,75);if(q){for(i=q-r;i--;)putchar(32);for(r+=p-q;~--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);r=(int)s;p=strchr(s,84)-r;for(;gets(s),i=p;){for(;i--;)putchar(32);puts("*");q=strchr(s,75);if(q){for(i=q-r;i--;)putchar(32);for(r+=p-q;~--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);r=(int)s;p=strchr(s,84)-r;for(;gets(s),i=p;){for(;i--;)putchar(32);puts("*");q=strchr(s,75);if(q){for(i=q-r;i--;)putchar(32);for(r+=p-q;~--r;)putchar(42);break;}}} ^~~~ /tmp/code.c:1:31: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] s[90];main(p,i,q,r){gets(s);r=(int)s;p=strchr(s,84)-r;for(;gets(s),i=p;){for(;i--;)putchar(32);puts("*");q=strchr(s,75);if(q){for(i=q-r;i--;)putchar(32);for(r+=p-q;~--r;)putchar(42);break;}}} ^ /tmp/code.c:1:40: warning: implicit declaration of function 'strchr' [-Wimplicit-function-declaration] s[90];main(p,i,q,r){gets(s);r=(int)s;p=strchr(s,84)-r;for(;gets(s),i=p;){for(;i--;)putchar(32);puts("*");q=strchr(s,75);if(q){for(i=q-r;i--;)putchar(32);for(r+=p-q;~--r;)putchar(42);break;}}} ^~~~~~ /tmp/code.c:1:40: warning: incompatible implicit declaration of built-in function 'strchr' /tmp/code.c:1:40: note: include '<string.h>' or provide a declaration of 'strchr' +#include <string.h> s[90];main(p,i,q,r){gets(s);r=(int)s;p=strchr(s,84)-r;for(;gets(s),i=p;){for(;i--;)putchar(32);puts("*");q=strchr(s,75);if(q){for(i=q-r;i--;)putchar(32);for(r+=p-q;~--r;)putchar(42);break;}}} ^~~~~~ /tmp/code.c:1:47: warning: passing argument 1 of 'strchr' from incompatible pointer type [-Wincompatible-pointer-types] s[90];main(p,i,q,r){gets(s);r=(int)s;p=strchr(s,84)-r;for(;gets(s),i=p;){for(;i--;)putchar(32);puts("*");q=strchr(s,75);if(q){for(i=q-r;i--;)putchar(32);for(r+=p-q;~--r;)putchar(42);break;}}} ^ /tmp/code.c:1:47: note: expected 'const char *' but argument is of type 'int *' /tmp/code.c:1:39: warning: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion] s[90];main(p,i,q,r){gets(s);r=(int)s;p=strchr(s,84)-r;for(;gets(s),i=p;){for(;i--;)putchar(32);puts("*");q=strchr(s,75);if(q){for(i=q-r;i--;)putchar(32);for(r+=p-q;~--r;)putchar(42);break;}}} ^ /tmp/code.c:1:84: warning: implicit declaration of function 'putchar' [-Wimplicit-function-declaration] s[90];main(p,i,q,r){gets(s);r=(int)s;p=strchr(s,84)-r;for(;gets(s),i=p;){for(;i--;)putchar(32);puts("*");q=strchr(s,75);if(q){for(i=q-r;i--;)putchar(32);for(r+=p-q;~--r;)putchar(42);break;}}} ^~~~~~~ /tmp/code.c:1:96: warning: implicit declaration of function 'puts' [-Wimplicit-function-declaration] s[90];main(p,i,q,r){gets(s);r=(int)s;p=strchr(s,84)-r;for(;gets(s),i=p;){for(;i--;)putchar(32);puts("*");q=strchr(s,75);if(q){for(i=q-r;i--;)putchar(32);for(r+=p-q;~--r;)putchar(42);break;}}} ^~~~ /tmp/code.c:1:115: warning: passing argument 1 of 'strchr' from incompatible pointer type [-Wincompatible-pointer-types] s[90];main(p,i,q,r){gets(s);r=(int)s;p=strchr(s,84)-r;for(;gets(s),i=p;){for(;i--;)putchar(32);puts("*");q=strchr(s,75);if(q){for(i=q-r;i--;)putchar(32);for(r+=p-q;~--r;)putchar(42);break;}}} ^ /tmp/code.c:1:115: note: expected 'const char *' but argument is of type 'int *' /tmp/code.c:1:107: warning: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion] s[90];main(p,i,q,r){gets(s);r=(int)s;p=strchr(s,84)-r;for(;gets(s),i=p;){for(;i--;)putchar(32);puts("*");q=strchr(s,75);if(q){for(i=q-r;i--;)putchar(32);for(r+=p-q;~--r;)putchar(42);break;}}} ^