QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#49962 | #874. Long Grid Covering | HuangHanSheng | Compile Error | / | / | C++14 | 1.9kb | 2022-09-24 12:46:55 | 2022-09-24 12:46:56 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In constructor ‘matrix::matrix()’: answer.code:39:20: error: ‘memset’ was not declared in this scope 39 | matrix() { memset(a, 0, sizeof a); } | ^~~~~~ answer.code:6:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? 5 | #include <vector> +++ |+#include <cstring> 6 | using namespace std; answer.code: In function ‘int main()’: answer.code:54:17: error: ‘memset’ was not declared in this scope 54 | memset(a, 0, sizeof a); | ^~~~~~ answer.code:54:17: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? answer.code:69:17: error: ‘memset’ was not declared in this scope 69 | memset(A, 0, sizeof A); | ^~~~~~ answer.code:69:17: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? answer.code:76:25: error: ‘memcpy’ was not declared in this scope 76 | memcpy(A, B, sizeof B); | ^~~~~~ answer.code:76:25: note: ‘memcpy’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? answer.code:65:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 65 | scanf("%d", &t); | ~~~~~^~~~~~~~~~ answer.code:68:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 68 | scanf("%lld", &n); | ~~~~~^~~~~~~~~~~~