QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#122086 | #4807. Melborp Lacissalc | GuanYunchang | Compile Error | / | / | C++23 | 933b | 2023-07-09 13:49:40 | 2023-07-09 13:49:42 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘int main()’: answer.code:30:5: error: ‘memset’ was not declared in this scope 30 | memset(dp, -1, sizeof(dp)); | ^~~~~~ answer.code:2:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? 1 | #include <iostream> +++ |+#include <cstring> 2 | answer.code:29:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 29 | scanf("%d%d%d", &n, &k, &t); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~