Compile Error
/in/foo.cc: In function 'int calc(int, int, int)': /in/foo.cc:21:73: error: 'max' was not declared in this scope return a[i][j][k] = max(calc(i-v[k], j-g[k],k-1)+c[k], calc(i, j, k-1)); ^ /in/foo.cc: In function 'int main()': /in/foo.cc:29:18: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=] scanf("%d", n); ^
信息
- 递交者
- 类型
- 递交
- 题目
- P1334 NASA的食物计划
- 语言
- C++
- 递交时间
- 2019-02-09 11:16:38
- 评测时间
- 2019-02-09 11:16:38
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes