Compile Error
/in/foo.cc: In function 'int main()': /in/foo.cc:26:12: error: missing template arguments before 'dp' vector dp(2 * n + 1,vector<int>(2 * n + 1)); ^~ /in/foo.cc:31:17: error: 'dp' was not declared in this scope dp[i][j] = max(dp[i][j],dp[i][k] + dp[k + 1][j] + head[i] * head[k + 1] * tail[j]); ^~ /in/foo.cc:37:23: error: 'dp' was not declared in this scope ans = max(ans,dp[i][i + n - 1]); ^~
信息
- 递交者
- 类型
- 递交
- 题目
- P1312 能量项链
- 语言
- C++
- 递交时间
- 2024-10-17 21:23:33
- 评测时间
- 2024-10-17 21:23:33
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes