QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#122073 | #4804. Regular Expression | HuangHanSheng | Compile Error | / | / | C++23 | 738b | 2023-07-09 13:26:04 | 2023-07-09 13:26:07 |
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:10:13: error: ‘strlen’ was not declared in this scope 10 | n = strlen(S); | ^~~~~~ answer.code:2:1: note: ‘strlen’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? 1 | #include <iostream> +++ |+#include <cstring> 2 | answer.code:8:15: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | for (scanf("%d", &_); _ != 0; --_) { | ~~~~~^~~~~~~~~~ answer.code:9:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 9 | scanf("%s", S); | ~~~~~^~~~~~~~~