/in/foo.c: In function 'main':
/in/foo.c:5:2: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
scanf("%d %d",&n,&m);
^~~~~
/in/foo.c:5:2: warning: incompatible implicit declaration of built-in function 'scanf'
/in/foo.c:5:2: note: include '<stdio.h>' or provide a declaration of 'scanf'
/in/foo.c:9:12: warning: format '%c' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=]
scanf("%c",a[i][j]);
~^ ~~~~~~~
/in/foo.c:10:3: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
printf("\n");
^~~~~~
/in/foo.c:10:3: warning: incompatible implicit declaration of built-in function 'printf'
/in/foo.c:10:3: note: include '<stdio.h>' or provide a declaration of 'printf'
/in/foo.c:12:2: error: 'i' undeclared (first use in this function)
i=0;
^
/in/foo.c:12:2: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:22:5: warning: left-hand operand of comma expression has no effect [-Wunused-value]
i=0,j=0;
^
/in/foo.c:29:5: warning: left-hand operand of comma expression has no effect [-Wunused-value]
i=0,j=0;
^
/in/foo.c:32:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for (j=0;j<m;j++)
^~~
/in/foo.c:35:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
if(a[0][j]=='#'&&a[0][j-1]=='1'&&a[0][j+1]=='1')
^~
/in/foo.c:37:4: error: expected ';' before 'if'
if
^~
/in/foo.c:40:2: warning: incompatible implicit declaration of built-in function 'printf'
printf("%d",x-count);
^~~~~~
/in/foo.c:40:2: note: include '<stdio.h>' or provide a declaration of 'printf'