Problem dragonfly
User Henries
Submission Time 2024-12-25 14:33:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

dragonfly.cpp: In function ‘int main()’:
dragonfly.cpp:81:5: error: ‘memset’ was not declared in this scope
81 | memset(parent, -1, sizeof(parent));
| ^~~~~~
dragonfly.cpp:5:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
4 | #include <cmath>
+++ |+#include <cstring>
5 | using namespace std;