0_0_39367675_13598.cpp: In function 'void solve()':
0_0_39367675_13598.cpp:16:17: error: 'memset' was not declared in this scope
16 | memset(dp, 0, sizeof(dp)); memset(pre, 0, sizeof(pre));
| ^~~~~~
0_0_39367675_13598.cpp:3:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
2 | #include <algorithm>
+++ |+#include <cstring>
3 | using namespace std;
|