/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:10:16: error: 'n' was not declared in this scope
  scanf("%d%d",&n,&m);
                ^
/in/foo.cc:13:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   for(int j=1;j<=m;j++)
                  ^
/in/foo.cc:15:16: error: 'x' was not declared in this scope
    scanf("%d",&x);
                ^
/in/foo.cc:18:5: error: 'd' was not declared in this scope
     d[i][j]=m(d[i-1][j],m(d[i][j-1],f[i-1][j-1]))
     ^
/in/foo.cc:18:37: error: 'f' was not declared in this scope
     d[i][j]=m(d[i-1][j],m(d[i][j-1],f[i-1][j-1]))
                                     ^
/in/foo.cc:23:5: error: 'f' was not declared in this scope
     f[i][j]=0;
     ^
/in/foo.cc:25:4: error: 'ans' was not declared in this scope
    ans=max(ans,f[i][j]);//调用max函数组
    ^~~
/in/foo.cc:25:16: error: 'f' was not declared in this scope
    ans=max(ans,f[i][j]);//调用max函数组
                ^
/in/foo.cc:28:15: error: 'an' was not declared in this scope
   printf("%d",an);
               ^~

信息

递交者
类型
递交
题目
P1057 盖房子
语言
C++
递交时间
2018-02-08 23:05:45
评测时间
2018-02-08 23:05:45
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes