Language: C

z[4000],*a=z,*b=z+2000,m,i,j,t;main(n){for(;scanf("%d",&n)*n++;m=!printf("%d\n",m))for(i=n;i--;j=a,a=b,b=j)for(j=n;j--;t>m?m=t:0)k=b[j]=n+~i&&getchar()>45?1+fmin(a[j],fmin(b[j+1],a[j+1])):0;}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | z[4000],*a=z,*b=z+2000,m,i,j,t;main(n){for(;scanf("%d",&n)*n++;m=!printf("%d\n",m))for(i=n;i--;j=a,a=b,b=j)for(j=n;j--;t>m?m=t:0)k=b[j]=n+~i&&getchar()>45?1+fmin(a[j],fmin(b[j+1],a[j+1])):0;}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'z' [-Wimplicit-int]
main.c:1:10: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
    1 | z[4000],*a=z,*b=z+2000,m,i,j,t;main(n){for(;scanf("%d",&n)*n++;m=!printf("%d\n",m))for(i=n;i--;j=a,a=b,b=j)for(j=n;j--;t>m?m=t:0)k=b[j]=n+~i&&getchar()>45?1+fmin(a[j],fmin(b[j+1],a[j+1])):0;}
      |          ^
main.c:1:15: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
    1 | z[4000],*a=z,*b=z+2000,m,i,j,t;main(n){for(;scanf("%d",&n)*n++;m=!printf("%d\n",m))for(i=n;i--;j=a,a=b,b=j)for(j=n;j--;t>m?m=t:0)k=b[j]=n+~i&&getchar()>45?1+fmin(a[j],fmin(b[j+1],a[j+1])):0;}
      |               ^
main.c:1:24: error: type defaults to 'int' in declaration of 'm' [-Wimplicit-int]
    1 | z[4000],*a=z,*b=z+2000,m,i,j,t;main(n){for(;scanf("%d",&n)*n++;m=!printf("%d\n",m))for(i=n;i--;j=a,a=b,b=j)for(j=n;j--;t>m?m=t:0)k=b[j]=n+~i&&getchar()>45?1+fmin(a[j],fmin(b[j+1],a[j+1])):0;}
      |                        ^
main.c:1:26: error: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
    1 | z[4000],*a=z,*b=z+2000,m,i,j,t;main(n){for(;scanf("%d",&n)*n++;m=!printf("%d\n",m))for(i=n;i--;j=a,a=b,b=j)for(j=n;j--;t>m?m=t:0)k=b[j]=n+~i&&getchar()>45?1+fmin(a[j],fmin(b[j+1],a[j+1])):0;}
      |                          ^
main.c:1:28: error: type defaults to 'int' in declaration of 'j' [-Wimplicit-int]
    1 | z[4000],*a=z,*b=z+2000,m,i,j,t;main(n){for(;scanf("%d",&n)*n++;m=!printf("%d\n",m))for(i=n;i--;j=a,a=b,b=j)for(j=n;j--;t>m?m=t:0)k=b[j]=n+~i&&getchar()>45?1+fmin(a[j],fmin(b[j+1],a[j+1])):0;}
      |                            ^
main.c:1:30: error: type defaults to 'int' in declaration of 't' [-Wimplicit-int]
    1 | z[4000],*a=z,*b=z+2000,m,i,j,t;main(n){for(;scanf("%d",&n)*n++;m=!printf("%d\n",m))for(i=n;i--;j=a,a=b,b=j)for(j=n;j--;t>m?m=t:0)k=b[j]=n+~i&&getchar()>45?1+fmin(a[j],fmin(b[j+1],a[j+1])):0;}
      |                              ^
main.c:1:32: error: return type defaults to 'int' [-Wimplicit-int]
    1 | z[4000],*a=z,*b=z+2000,m,i,j,t;main(n){for(;scanf("%d",&n)*n++;m=!printf("%d\n",m))for(i=n;i--;j=a,a=b,b=j)for(j=n;j--;t>m?m=t:0)k=b[j]=n+~i&&getchar()>45?1+fmin(a[j],fmin(b[j+1],a[j+1])):0;}
      |                                ^~~~
main.c: In function 'main':
main.c:1:32: error: type of 'n' defaults to 'int' [-Wimplicit-int]
main.c:1:45: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | z[4000],*a=z,*b=z+2000,m,i,j,t;main(n){for(;scanf("%d",&n)*n++;m=!printf("%d\n",m))for(i=n;i--;j=a,a=b,b=j)for(j=n;j--;t>m?m=t:0)k=b[j]=n+~i&&getchar()>45?1+fmin(a[j],fmin(b[j+1],a[j+1])):0;}
      |                                             ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | z[4000],*a=z,*b=z+2000,m,i,j,t;main(n){for(;scanf("%d",&n)*n++;m=!printf("%d\n",m))for(i=n;i--;j=a,a=b,b=j)for(j=n;j--;t>m?m=t:0)k=b[j]=n+~i&&getchar()>45?1+fmin(a[j],fmin(b[j+1],a[j+1])):0;}
main.c:1:45: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | z[4000],*a=z,*b=z+2000,m,i,j,t;main(n){for(;scanf("%d",&n)*n++;m=!printf("%d\n",m))for(i=n;i--;j=a,a=b,b=j)for(j=n;j--;t>m?m=t:0)k=b[j]=n+~i&&getchar()>45?1+fmin(a[j],fmin(b[j+1],a[j+1])):0;}
      |                                             ^~~~~
main.c:1:45: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:67: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | z[4000],*a=z,*b=z+2000,m,i,j,t;main(n){for(;scanf("%d",&n)*n++;m=!printf("%d\n",m))for(i=n;i--;j=a,a=b,b=j)for(j=n;j--;t>m?m=t:0)k=b[j]=n+~i&&getchar()>45?1+fmin(a[j],fmin(b[j+1],a[j+1])):0;}
      |                                                                   ^~~~~~
main.c:1:67: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:67: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:67: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:97: error: assignment to 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion]
    1 | z[4000],*a=z,*b=z+2000,m,i,j,t;main(n){for(;scanf("%d",&n)*n++;m=!printf("%d\n",m))for(i=n;i--;j=a,a=b,b=j)for(j=n;j--;t>m?m=t:0)k=b[j]=n+~i&&getchar()>45?1+fmin(a[j],fmin(b[j+1],a[j+1])):0;}
      |                                                                                                 ^
main.c:1:105: error: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    1 | z[4000],*a=z,*b=z+2000,m,i,j,t;main(n){for(;scanf("%d",&n)*n++;m=!printf("%d\n",m))for(i=n;i--;j=a,a=b,b=j)for(j=n;j--;t>m?m=t:0)k=b[j]=n+~i&&getchar()>45?1+fmin(a[j],fmin(b[j+1],a[j+1])):0;}
      |                                                                                                         ^
main.c:1:130: error: 'k' undeclared (first use in this function)
    1 | z[4000],*a=z,*b=z+2000,m,i,j,t;main(n){for(;scanf("%d",&n)*n++;m=!printf("%d\n",m))for(i=n;i--;j=a,a=b,b=j)for(j=n;j--;t>m?m=t:0)k=b[j]=n+~i&&getchar()>45?1+fmin(a[j],fmin(b[j+1],a[j+1])):0;}
      |                                                                                                                                  ^
main.c:1:130: note: each undeclared identifier is reported only once for each function it appears in
main.c:1:143: error: implicit declaration of function 'getchar' [-Wimplicit-function-declaration]
    1 | z[4000],*a=z,*b=z+2000,m,i,j,t;main(n){for(;scanf("%d",&n)*n++;m=!printf("%d\n",m))for(i=n;i--;j=a,a=b,b=j)for(j=n;j--;t>m?m=t:0)k=b[j]=n+~i&&getchar()>45?1+fmin(a[j],fmin(b[j+1],a[j+1])):0;}
      |                                                                                                                                               ^~~~~~~
main.c:1:143: note: 'getchar' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:1:158: error: implicit declaration of function 'fmin' [-Wimplicit-function-declaration]
    1 | z[4000],*a=z,*b=z+2000,m,i,j,t;main(n){for(;scanf("%d",&n)*n++;m=!printf("%d\n",m))for(i=n;i--;j=a,a=b,b=j)for(j=n;j--;t>m?m=t:0)k=b[j]=n+~i&&getchar()>45?1+fmin(a[j],fmin(b[j+1],a[j+1])):0;}
      |                                                                                                                                                              ^~~~
main.c:1:1: note: include '<math.h>' or provide a declaration of 'fmin'
  +++ |+#include <math.h>
    1 | z[4000],*a=z,*b=z+2000,m,i,j,t;main(n){for(;scanf("%d",&n)*n++;m=!printf("%d\n",m))for(i=n;i--;j=a,a=b,b=j)for(j=n;j--;t>m?m=t:0)k=b[j]=n+~i&&getchar()>45?1+fmin(a[j],fmin(b[j+1],a[j+1])):0;}
main.c:1:158: warning: incompatible implicit declaration of built-in function 'fmin' [-Wbuiltin-declaration-mismatch]
    1 | z[4000],*a=z,*b=z+2000,m,i,j,t;main(n){for(;scanf("%d",&n)*n++;m=!printf("%d\n",m))for(i=n;i--;j=a,a=b,b=j)for(j=n;j--;t>m?m=t:0)k=b[j]=n+~i&&getchar()>45?1+fmin(a[j],fmin(b[j+1],a[j+1])):0;}
      |                                                                                                                                                              ^~~~
main.c:1:158: note: include '<math.h>' or provide a declaration of 'fmin'