Language: C

*a=z,*b=z+2000,m,i,j,z[999];main(n){for(;scanf("%d",&n),i=n;printf("%d\n",m))for(memset(a,m=0,8e3);i--;j=a,a=b,b=j)for(j=0;j++<=n;)m=fmax(m,b[j]=getchar()-46?0:1+fmin(fmin(b[j-1],a[j-1]),a[j]));}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | *a=z,*b=z+2000,m,i,j,z[999];main(n){for(;scanf("%d",&n),i=n;printf("%d\n",m))for(memset(a,m=0,8e3);i--;j=a,a=b,b=j)for(j=0;j++<=n;)m=fmax(m,b[j]=getchar()-46?0:1+fmin(fmin(b[j-1],a[j-1]),a[j]));}
      | ^
main.c:1:2: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
    1 | *a=z,*b=z+2000,m,i,j,z[999];main(n){for(;scanf("%d",&n),i=n;printf("%d\n",m))for(memset(a,m=0,8e3);i--;j=a,a=b,b=j)for(j=0;j++<=n;)m=fmax(m,b[j]=getchar()-46?0:1+fmin(fmin(b[j-1],a[j-1]),a[j]));}
      |  ^
main.c:1:4: error: 'z' undeclared here (not in a function)
    1 | *a=z,*b=z+2000,m,i,j,z[999];main(n){for(;scanf("%d",&n),i=n;printf("%d\n",m))for(memset(a,m=0,8e3);i--;j=a,a=b,b=j)for(j=0;j++<=n;)m=fmax(m,b[j]=getchar()-46?0:1+fmin(fmin(b[j-1],a[j-1]),a[j]));}
      |    ^
main.c:1:7: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
    1 | *a=z,*b=z+2000,m,i,j,z[999];main(n){for(;scanf("%d",&n),i=n;printf("%d\n",m))for(memset(a,m=0,8e3);i--;j=a,a=b,b=j)for(j=0;j++<=n;)m=fmax(m,b[j]=getchar()-46?0:1+fmin(fmin(b[j-1],a[j-1]),a[j]));}
      |       ^
main.c:1:16: error: type defaults to 'int' in declaration of 'm' [-Wimplicit-int]
    1 | *a=z,*b=z+2000,m,i,j,z[999];main(n){for(;scanf("%d",&n),i=n;printf("%d\n",m))for(memset(a,m=0,8e3);i--;j=a,a=b,b=j)for(j=0;j++<=n;)m=fmax(m,b[j]=getchar()-46?0:1+fmin(fmin(b[j-1],a[j-1]),a[j]));}
      |                ^
main.c:1:18: error: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
    1 | *a=z,*b=z+2000,m,i,j,z[999];main(n){for(;scanf("%d",&n),i=n;printf("%d\n",m))for(memset(a,m=0,8e3);i--;j=a,a=b,b=j)for(j=0;j++<=n;)m=fmax(m,b[j]=getchar()-46?0:1+fmin(fmin(b[j-1],a[j-1]),a[j]));}
      |                  ^
main.c:1:20: error: type defaults to 'int' in declaration of 'j' [-Wimplicit-int]
    1 | *a=z,*b=z+2000,m,i,j,z[999];main(n){for(;scanf("%d",&n),i=n;printf("%d\n",m))for(memset(a,m=0,8e3);i--;j=a,a=b,b=j)for(j=0;j++<=n;)m=fmax(m,b[j]=getchar()-46?0:1+fmin(fmin(b[j-1],a[j-1]),a[j]));}
      |                    ^
main.c:1:22: error: type defaults to 'int' in declaration of 'z' [-Wimplicit-int]
    1 | *a=z,*b=z+2000,m,i,j,z[999];main(n){for(;scanf("%d",&n),i=n;printf("%d\n",m))for(memset(a,m=0,8e3);i--;j=a,a=b,b=j)for(j=0;j++<=n;)m=fmax(m,b[j]=getchar()-46?0:1+fmin(fmin(b[j-1],a[j-1]),a[j]));}
      |                      ^
main.c:1:29: error: return type defaults to 'int' [-Wimplicit-int]
    1 | *a=z,*b=z+2000,m,i,j,z[999];main(n){for(;scanf("%d",&n),i=n;printf("%d\n",m))for(memset(a,m=0,8e3);i--;j=a,a=b,b=j)for(j=0;j++<=n;)m=fmax(m,b[j]=getchar()-46?0:1+fmin(fmin(b[j-1],a[j-1]),a[j]));}
      |                             ^~~~
main.c: In function 'main':
main.c:1:29: error: type of 'n' defaults to 'int' [-Wimplicit-int]
main.c:1:42: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | *a=z,*b=z+2000,m,i,j,z[999];main(n){for(;scanf("%d",&n),i=n;printf("%d\n",m))for(memset(a,m=0,8e3);i--;j=a,a=b,b=j)for(j=0;j++<=n;)m=fmax(m,b[j]=getchar()-46?0:1+fmin(fmin(b[j-1],a[j-1]),a[j]));}
      |                                          ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | *a=z,*b=z+2000,m,i,j,z[999];main(n){for(;scanf("%d",&n),i=n;printf("%d\n",m))for(memset(a,m=0,8e3);i--;j=a,a=b,b=j)for(j=0;j++<=n;)m=fmax(m,b[j]=getchar()-46?0:1+fmin(fmin(b[j-1],a[j-1]),a[j]));}
main.c:1:42: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | *a=z,*b=z+2000,m,i,j,z[999];main(n){for(;scanf("%d",&n),i=n;printf("%d\n",m))for(memset(a,m=0,8e3);i--;j=a,a=b,b=j)for(j=0;j++<=n;)m=fmax(m,b[j]=getchar()-46?0:1+fmin(fmin(b[j-1],a[j-1]),a[j]));}
      |                                          ^~~~~
main.c:1:42: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:61: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | *a=z,*b=z+2000,m,i,j,z[999];main(n){for(;scanf("%d",&n),i=n;printf("%d\n",m))for(memset(a,m=0,8e3);i--;j=a,a=b,b=j)for(j=0;j++<=n;)m=fmax(m,b[j]=getchar()-46?0:1+fmin(fmin(b[j-1],a[j-1]),a[j]));}
      |                                                             ^~~~~~
main.c:1:61: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:61: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:61: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:82: error: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
    1 | *a=z,*b=z+2000,m,i,j,z[999];main(n){for(;scanf("%d",&n),i=n;printf("%d\n",m))for(memset(a,m=0,8e3);i--;j=a,a=b,b=j)for(j=0;j++<=n;)m=fmax(m,b[j]=getchar()-46?0:1+fmin(fmin(b[j-1],a[j-1]),a[j]));}
      |                                                                                  ^~~~~~
main.c:1:1: note: include '<string.h>' or provide a declaration of 'memset'
  +++ |+#include <string.h>
    1 | *a=z,*b=z+2000,m,i,j,z[999];main(n){for(;scanf("%d",&n),i=n;printf("%d\n",m))for(memset(a,m=0,8e3);i--;j=a,a=b,b=j)for(j=0;j++<=n;)m=fmax(m,b[j]=getchar()-46?0:1+fmin(fmin(b[j-1],a[j-1]),a[j]));}
main.c:1:82: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch]
    1 | *a=z,*b=z+2000,m,i,j,z[999];main(n){for(;scanf("%d",&n),i=n;printf("%d\n",m))for(memset(a,m=0,8e3);i--;j=a,a=b,b=j)for(j=0;j++<=n;)m=fmax(m,b[j]=getchar()-46?0:1+fmin(fmin(b[j-1],a[j-1]),a[j]));}
      |                                                                                  ^~~~~~
main.c:1:82: note: include '<string.h>' or provide a declaration of 'memset'
main.c:1:105: error: assignment to 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion]
    1 | *a=z,*b=z+2000,m,i,j,z[999];main(n){for(;scanf("%d",&n),i=n;printf("%d\n",m))for(memset(a,m=0,8e3);i--;j=a,a=b,b=j)for(j=0;j++<=n;)m=fmax(m,b[j]=getchar()-46?0:1+fmin(fmin(b[j-1],a[j-1]),a[j]));}
      |                                                                                                         ^
main.c:1:113: error: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    1 | *a=z,*b=z+2000,m,i,j,z[999];main(n){for(;scanf("%d",&n),i=n;printf("%d\n",m))for(memset(a,m=0,8e3);i--;j=a,a=b,b=j)for(j=0;j++<=n;)m=fmax(m,b[j]=getchar()-46?0:1+fmin(fmin(b[j-1],a[j-1]),a[j]));}
      |                                                                                                                 ^
main.c:1:134: error: implicit declaration of function 'fmax' [-Wimplicit-function-declaration]
    1 | *a=z,*b=z+2000,m,i,j,z[999];main(n){for(;scanf("%d",&n),i=n;printf("%d\n",m))for(memset(a,m=0,8e3);i--;j=a,a=b,b=j)for(j=0;j++<=n;)m=fmax(m,b[j]=getchar()-46?0:1+fmin(fmin(b[j-1],a[j-1]),a[j]));}
      |                                                                                                                                      ^~~~
main.c:1:1: note: include '<math.h>' or provide a declaration of 'fmax'
  +++ |+#include <math.h>
    1 | *a=z,*b=z+2000,m,i,j,z[999];main(n){for(;scanf("%d",&n),i=n;printf("%d\n",m))for(memset(a,m=0,8e3);i--;j=a,a=b,b=j)for(j=0;j++<=n;)m=fmax(m,b[j]=getchar()-46?0:1+fmin(fmin(b[j-1],a[j-1]),a[j]));}
main.c:1:134: warning: incompatible implicit declaration of built-in function 'fmax' [-Wbuiltin-declaration-mismatch]
    1 | *a=z,*b=z+2000,m,i,j,z[999];main(n){for(;scanf("%d",&n),i=n;printf("%d\n",m))for(memset(a,m=0,8e3);i--;j=a,a=b,b=j)for(j=0;j++<=n;)m=fmax(m,b[j]=getchar()-46?0:1+fmin(fmin(b[j-1],a[j-1]),a[j]));}
      |                                                                                                                                      ^~~~
main.c:1:134: note: include '<math.h>' or provide a declaration of 'fmax'
main.c:1:146: error: implicit declaration of function 'getchar' [-Wimplicit-function-declaration]
    1 | *a=z,*b=z+2000,m,i,j,z[999];main(n){for(;scanf("%d",&n),i=n;printf("%d\n",m))for(memset(a,m=0,8e3);i--;j=a,a=b,b=j)for(j=0;j++<=n;)m=fmax(m,b[j]=getchar()-46?0:1+fmin(fmin(b[j-1],a[j-1]),a[j]));}
      |                                                                                                                                                  ^~~~~~~
main.c:1:146: note: 'getchar' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:1:163: error: implicit declaration of function 'fmin' [-Wimplicit-function-declaration]
    1 | *a=z,*b=z+2000,m,i,j,z[999];main(n){for(;scanf("%d",&n),i=n;printf("%d\n",m))for(memset(a,m=0,8e3);i--;j=a,a=b,b=j)for(j=0;j++<=n;)m=fmax(m,b[j]=getchar()-46?0:1+fmin(fmin(b[j-1],a[j-1]),a[j]));}
      |                                                                                                                                                                   ^~~~
main.c:1:163: note: include '<math.h>' or provide a declaration of 'fmin'
main.c:1:163: warning: incompatible implicit declaration of built-in function 'fmin' [-Wbuiltin-declaration-mismatch]
main.c:1:163: note: include '<math.h>' or provide a declaration of 'fmin'