foo.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
include<stdio.h>
^
foo.c: In function 'main':
foo.c:14:1: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
while(scanf("%ld%ld",&n,&m)!=EOF)
^
foo.c:14:7: warning: incompatible implicit declaration of built-in function 'scanf' [enabled by default]
while(scanf("%ld%ld",&n,&m)!=EOF)
^
foo.c:14:30: error: 'EOF' undeclared (first use in this function)
while(scanf("%ld%ld",&n,&m)!=EOF)
^
foo.c:14:30: note: each undeclared identifier is reported only once for each function it appears in
foo.c:18:29: error: 'max' undeclared (first use in this function)
for(j=1;j<=n;j++) map[i][j]=max;
^
foo.c:37:1: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
if(ans==max) printf("No solution.\n");
^
foo.c:37:14: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
if(ans==max) printf("No solution.\n");
^
foo.c:38:6: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
else printf("%ld\n",ans);
^