Compile Error
foo.cc: In function ‘int main()’:
foo.cc:9:9: error: ‘memset’ was not declared in this scope
9 | memset(a, 0, sizeof(a));
| ^~~~~~
foo.cc:2:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
1 | #include <iostream>
+++ |+#include <cstring>
2 | using namespace std;
foo.cc:31:18: error: expected ‘}’ at end of input
31 | return 0;
| ^
foo.cc:4:1: note: to match this ‘{’
4 | {
| ^
信息
- 递交者
- 类型
- 自测
- 题目
- 3-3 炒股发财
- 语言
- C++
- 递交时间
- 2024-09-19 16:35:37
- 评测时间
- 2024-09-19 16:35:37
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes