Compile Error
foo.cc: In function 'int main()': foo.cc:13:14: error: 'malloc' was not declared in this scope 13 | int *a = malloc(1024 * 1024 * 10); | ^~~~~~ foo.cc:3:1: note: 'malloc' is defined in header '<cstdlib>'; did you forget to '#include <cstdlib>'? 2 | #include <unistd.h> +++ |+#include <cstdlib> 3 | int main()
[Hydro](https://hydro.ac)提供评测服务
信息
- 递交者
- 类型
- 递交
- 题目
- P1000 输出“Hello World!"
- 语言
- C++
- 递交时间
- 2022-08-05 17:58:49
- 评测时间
- 2022-08-05 17:58:49
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes