Problem | naptime |
---|---|
User | Pan |
Submission Time | 2023-11-28 20:03:09 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
naptime.cpp: In function ‘int main()’:
naptime.cpp:22:2: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
22 | sort(child.begin(), child.end());
| ^~~~
| qsort
naptime.cpp:24:26: error: ‘memset’ was not declared in this scope
24 | for (ll i=1; i<=r; ++i) memset(distance[i], -1, sizeof(distance[i]));
| ^~~~~~
naptime.cpp:7:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
6 | #include <climits>
+++ |+#include <cstring>
7 | #define mp make_pair