/in/foo.c: In function 'main':
/in/foo.c:5:5: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
scanf("%d%d\n",&n,&k);
^~~~~
/in/foo.c:5:5: warning: incompatible implicit declaration of built-in function 'scanf'
/in/foo.c:5:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
/in/foo.c:31:5: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
printf("%d",count);
^~~~~~
/in/foo.c:31:5: warning: incompatible implicit declaration of built-in function 'printf'
/in/foo.c:31:5: note: include '<stdio.h>' or provide a declaration of 'printf'
/in/foo.c:17:21: warning: iteration 21 invokes undefined behavior [-Waggressive-loop-optimizations]
if (a[i][j]==0)
~~~~^~~
/in/foo.c:15:9: note: within this loop
for (j=0;j<=21;j++)
^~~
/in/foo.c:23:33: warning: iteration 21 invokes undefined behavior [-Waggressive-loop-optimizations]
if (a[j][p]==a[i][m])
~~~~^~~
/in/foo.c:22:25: note: within this loop
for (p=0;p<=21;p++)
^~~
/in/foo.c:10:21: warning: iteration 22 invokes undefined behavior [-Waggressive-loop-optimizations]
if (a[i][j]==0)
~~~~^~~
/in/foo.c:6:5: note: within this loop
for (i=0;i<=22;i++)
^~~