/ Vijos /

记录详情

Compile Error

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);
      ^

信息

递交者
类型
递交
题目
P1046 观光旅游
语言
C
递交时间
2016-10-15 09:27:07
评测时间
2016-10-15 09:27:07
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes