Problem firefighting
User amaadvik
Submission Time 2025-01-04 14:50:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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