Problem enwisen
User shenshiqi
Submission Time 2026-08-16 10:13:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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