Compile Error
foo.cc: In function ‘int main()’:
foo.cc:10:5: error: ‘memset’ was not declared in this scope
10 | memset(dp,-inf,sizeof(dp));
| ^~~~~~
foo.cc:5:1: note: ‘memset’ is defined in header ‘<cstring>’; this is probably fixable by adding ‘#include <cstring>’
4 | #include <algorithm>
+++ |+#include <cstring>
5 | using namespace std;
foo.cc:17:24: error: ‘sum’ was not declared in this scope
17 | for(int j=0;j<=sum[i];j++){
| ^~~
信息
- 递交者
- 类型
- 自测
- 题目
- P1037 搭建双塔
- 语言
- C++
- 递交时间
- 2025-04-03 10:09:32
- 评测时间
- 2025-04-03 10:09:32
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes