Problem trains
User dzuizz
Submission Time 2023-06-22 11:50:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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