QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#69956 | #4438. Magic | ZhangYiDe | Compile Error | / | / | C++20 | 1.2kb | 2023-01-03 16:55:51 | 2023-01-03 16:55:52 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
answer.code: In function ‘int spfa()’: answer.code:22:9: error: ‘memset’ was not declared in this scope 22 | memset(dis,-1,sizeof(dis)); | ^~~~~~ answer.code:3:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? 2 | #include<queue> +++ |+#include <cstring> 3 | using namespace std; answer.code: In function ‘int main()’: answer.code:59:17: error: ‘memset’ was not declared in this scope 59 | memset(head,-1,sizeof(head)); | ^~~~~~ answer.code:59:17: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?