0_0_39826511_17998.cpp: In function 'int main()':
0_0_39826511_17998.cpp:9:9: error: 'memset' was not declared in this scope
9 | memset(dp, 0, sizeof(dp));
| ^~~~~~
0_0_39826511_17998.cpp:4:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
3 | #include<algorithm>
+++ |+#include <cstring>
4 | int a[10005], dp[10005];
|