Problem sale
User shenshiqi
Submission Time 2026-03-11 19:58:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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