QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#189861#6381. LaLa and Harvestingucup-team864Compile Error//C++145.6kb2023-09-28 00:54:042023-09-28 00:54:04

Details

answer.code: In constructor ‘cont::cont(cont&, cont&)’:
answer.code:64:17: error: ‘assert’ was not declared in this scope
   64 |                 assert(gd.size() <= 4);
      |                 ^~~~~~
answer.code:4:1: note: ‘assert’ is defined in header ‘<cassert>’; did you forget to ‘#include <cassert>’?
    3 | #include <algorithm>
  +++ |+#include <cassert>
    4 | 
answer.code: In function ‘int main()’:
answer.code:181:17: error: ‘memset’ was not declared in this scope
  181 |                 memset(blk, 0, sizeof blk);
      |                 ^~~~~~
answer.code:4:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
    3 | #include <algorithm>
  +++ |+#include <cstring>
    4 | 
answer.code:202:9: error: ‘memset’ was not declared in this scope
  202 |         memset(blk, 0, sizeof blk);
      |         ^~~~~~
answer.code:202:9: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?