Compile Error
foo.cc: In function 'int main()':
foo.cc:10:5: error: 'memset' was not declared in this scope
10 | memset(dp,-1,sizeof dp);
| ^~~~~~
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:18:22: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
18 | st|=(1<<x-1);
| ~^~
正在同步测试数据,请稍后 [Hydro](https://hydro.ac)提供评测服务
信息
- 递交者
- 类型
- 递交
- 题目
- P1331 糖果
- 比赛
- 2022春季 荣誉练习赛1(2019蓝桥A组省赛重温)
- 语言
- C++
- 递交时间
- 2022-03-19 19:14:34
- 评测时间
- 2022-03-19 19:14:34
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes