Compile Error
/in/foo.cc: In constructor 'Array::Array(int*, int)': /in/foo.cc:9:17: error: 'memcpy' was not declared in this scope 9 | memcpy(data, arr, sizeof(int) * n); | ^~~~~~ /in/foo.cc:2:1: note: 'memcpy' is defined in header '<cstring>'; did you forget to '#include <cstring>'? 1 | #include<iostream> +++ |+#include <cstring> 2 | using namespace std;
信息
- 递交者
- 类型
- 递交
- 题目
- P1417 2 数组类+定点删除
- 比赛
- 2024级《面向对象的方法与实践》基本功测试
- 语言
- C++
- 递交时间
- 2025-05-29 11:17:15
- 评测时间
- 2025-05-29 11:17:15
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes