Compiler error: memset was not declared in this scope December 29, 2022 by Tarik You should include <string.h> (or its C++ equivalent, <cstring>).