QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#34786#4251. Gamealch07#Compile Error//C++14796b2022-06-12 07:34:272024-05-26 00:56:20

详细

answer.code: In function ‘int add_teleporter(int, int)’:
answer.code:37:5: error: ‘memset’ was not declared in this scope
   37 |     memset(vis,0,nn);
      |     ^~~~~~
answer.code:3:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
    2 | #include <vector>
  +++ |+#include <cstring>
    3 | using namespace std;