Result

AC

Duration

1087ms

Code [DL]

main(w,h,i){scanf("%d%d",&h,&w);for(i=++w*h;i--;)putchar(-~i%w>2&i>w&i<w*h-w?32:i%w?42:10);}

stdin

53
69

stdout

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

stderr

/tmp/code.c:1:1: warning: return type defaults to 'int' [-Wimplicit-int]
 main(w,h,i){scanf("%d%d",&h,&w);for(i=++w*h;i--;)putchar(-~i%w>2&i>w&i<w*h-w?32:i%w?42:10);}
 ^~~~
/tmp/code.c: In function 'main':
/tmp/code.c:1:1: warning: type of 'w' defaults to 'int' [-Wimplicit-int]
/tmp/code.c:1:1: warning: type of 'h' defaults to 'int' [-Wimplicit-int]
/tmp/code.c:1:1: warning: type of 'i' defaults to 'int' [-Wimplicit-int]
/tmp/code.c:1:13: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
 main(w,h,i){scanf("%d%d",&h,&w);for(i=++w*h;i--;)putchar(-~i%w>2&i>w&i<w*h-w?32:i%w?42:10);}
             ^~~~~
/tmp/code.c:1:13: warning: incompatible implicit declaration of built-in function 'scanf'
/tmp/code.c:1:13: note: include '<stdio.h>' or provide a declaration of 'scanf'
+#include <stdio.h>
 main(w,h,i){scanf("%d%d",&h,&w);for(i=++w*h;i--;)putchar(-~i%w>2&i>w&i<w*h-w?32:i%w?42:10);}
             ^~~~~
/tmp/code.c:1:50: warning: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
 main(w,h,i){scanf("%d%d",&h,&w);for(i=++w*h;i--;)putchar(-~i%w>2&i>w&i<w*h-w?32:i%w?42:10);}
                                                  ^~~~~~~
/tmp/code.c:1:63: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
 main(w,h,i){scanf("%d%d",&h,&w);for(i=++w*h;i--;)putchar(-~i%w>2&i>w&i<w*h-w?32:i%w?42:10);}
                                                          ~~~~~^~
/tmp/code.c:1:71: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
 main(w,h,i){scanf("%d%d",&h,&w);for(i=++w*h;i--;)putchar(-~i%w>2&i>w&i<w*h-w?32:i%w?42:10);}
                                                                      ~^~~~~~