QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#866401#8941. Even or Odd Spanning TreeZhaoZiLongCompile Error//C++173.9kb2025-01-22 14:54:162025-01-22 14:54:16

Details

answer.code: In function ‘void slove()’:
answer.code:113:5: error: ‘memset’ was not declared in this scope
  113 |     memset(dep, 0, sizeof(dep));
      |     ^~~~~~
answer.code:5:1: note: ‘memset’ is defined in header ‘<cstring>’; this is probably fixable by adding ‘#include <cstring>’
    4 | #include <set>
  +++ |+#include <cstring>
    5 |