Compile Error
foo.cc: In function ‘int main()’: foo.cc:10:9: error: ‘cin’ was not declared in this scope 10 | cin>>T; | ^~~ foo.cc:26:42: error: ‘max’ was not declared in this scope 26 | dp[i][j]=max(dp[i-1][j] , v[i]+dp[i-1][j-t[i]]); | ^~~ foo.cc:30:9: error: ‘cout’ was not declared in this scope 30 | cout<<dp[m][T]; | ^~~~
信息
- 递交者
- 类型
- 递交
- 题目
- P1104 采药
- 语言
- C++
- 递交时间
- 2024-07-02 14:53:20
- 评测时间
- 2024-07-02 14:53:20
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes