Problem packingducks
User 583116UB
Submission Time 2024-08-03 10:35:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

packingducks.cpp: In function ‘int main()’:
packingducks.cpp:18:5: error: ‘memset’ was not declared in this scope
18 | memset(dp, 0, sizeof(dp));
| ^~~~~~
packingducks.cpp:3:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
2 | #include <vector>
+++ |+#include <cstring>
3 |