Compile Error
/in/foo.cc: In function 'int main()': /in/foo.cc:19:65: error: 'max' was not declared in this scope dp[i][j]=max(dp[i][j],dp[i-1][j]+g*j*(t+b*(i-1))); ^ /in/foo.cc:21:65: error: 'max' was not declared in this scope dp[i][j]=max(dp[i][j],dp[i][j-1]+g*(j-1)*(t+b*i)); ^ /in/foo.cc:22:57: error: 'max' was not declared in this scope ans=max(ans,dp[i][j]+(n-i-j)*(g*j+r)*(t+i*b)); ^
信息
- 递交者
- 类型
- 递交
- 题目
- P1417 魔法塔防
- 语言
- C++
- 递交时间
- 2020-06-05 22:04:54
- 评测时间
- 2020-06-05 22:04:54
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes