QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#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.
Details
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>’?