Compile Error
foo.cc: In function 'int work2()': foo.cc:17:20: warning: integer overflow in expression of type 'int' results in '2147483647' [-Woverflow] 17 | int ans=(1<<31)-1; | ~~~~~~~^~ foo.cc:21:13: error: 'memset' was not declared in this scope 21 | memset(book,0,sizeof(book)); | ^~~~~~ foo.cc:3:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'? 2 | #include <algorithm> +++ |+#include <cstring> 3 | using namespace std;
[Hydro](https://hydro.ac)提供评测服务
信息
- 递交者
- 类型
- 递交
- 题目
- P1039 最小差距
- 语言
- C++
- 递交时间
- 2023-12-09 20:20:17
- 评测时间
- 2023-12-09 20:20:17
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes