by@henkma
WA
1060ms
h;c;i;main(w){for(scanf("%d%d",&h,&w);;putchar(++i%w/2*c?32:i>w?c=h--%h,i=0,10:42));}70 23
*********************** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
/tmp/code.c:1:1: warning: data definition has no type or storage class
h;c;i;main(w){for(scanf("%d%d",&h,&w);;putchar(++i%w/2*c?32:i>w?c=h--%h,i=0,10:42));}
^
/tmp/code.c:1:1: warning: type defaults to 'int' in declaration of 'h' [-Wimplicit-int]
/tmp/code.c:1:3: warning: data definition has no type or storage class
h;c;i;main(w){for(scanf("%d%d",&h,&w);;putchar(++i%w/2*c?32:i>w?c=h--%h,i=0,10:42));}
^
/tmp/code.c:1:3: warning: type defaults to 'int' in declaration of 'c' [-Wimplicit-int]
/tmp/code.c:1:5: warning: data definition has no type or storage class
h;c;i;main(w){for(scanf("%d%d",&h,&w);;putchar(++i%w/2*c?32:i>w?c=h--%h,i=0,10:42));}
^
/tmp/code.c:1:5: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
/tmp/code.c:1:7: warning: return type defaults to 'int' [-Wimplicit-int]
h;c;i;main(w){for(scanf("%d%d",&h,&w);;putchar(++i%w/2*c?32:i>w?c=h--%h,i=0,10:42));}
^~~~
/tmp/code.c: In function 'main':
/tmp/code.c:1:7: warning: type of 'w' defaults to 'int' [-Wimplicit-int]
/tmp/code.c:1:19: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
h;c;i;main(w){for(scanf("%d%d",&h,&w);;putchar(++i%w/2*c?32:i>w?c=h--%h,i=0,10:42));}
^~~~~
/tmp/code.c:1:19: warning: incompatible implicit declaration of built-in function 'scanf'
/tmp/code.c:1:19: note: include '<stdio.h>' or provide a declaration of 'scanf'
+#include <stdio.h>
h;c;i;main(w){for(scanf("%d%d",&h,&w);;putchar(++i%w/2*c?32:i>w?c=h--%h,i=0,10:42));}
^~~~~
/tmp/code.c:1:40: warning: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
h;c;i;main(w){for(scanf("%d%d",&h,&w);;putchar(++i%w/2*c?32:i>w?c=h--%h,i=0,10:42));}
^~~~~~~
/tmp/code.c:1:55: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
h;c;i;main(w){for(scanf("%d%d",&h,&w);;putchar(++i%w/2*c?32:i>w?c=h--%h,i=0,10:42));}
~~~~~~~^~
/tmp/code.c:1:68: warning: operation on 'h' may be undefined [-Wsequence-point]
h;c;i;main(w){for(scanf("%d%d",&h,&w);;putchar(++i%w/2*c?32:i>w?c=h--%h,i=0,10:42));}
~^~
Arithmetic exception