QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#486063 | #5434. Binary Substrings | MaMengQi | Compile Error | / | / | C++14 | 1.7kb | 2024-07-21 15:37:22 | 2024-07-21 15:37:22 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In function ‘void clear()’: answer.code:7:9: error: ‘memset’ was not declared in this scope 7 | memset(seq,0,sizeof(seq));len=0; | ^~~~~~ answer.code:2:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? 1 | #include <iostream> +++ |+#include <cstring> 2 | using namespace std; answer.code: In function ‘void solve()’: answer.code:23:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 23 | scanf("%d",&n);clear(); | ~~~~~^~~~~~~~~ answer.code: In function ‘int main()’: answer.code:54:16: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 54 | freopen("tao.in","r",stdin);freopen("tao.out","w",stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~ answer.code:54:44: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 54 | freopen("tao.in","r",stdin);freopen("tao.out","w",stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ answer.code:55:21: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 55 | int qu;scanf("%d",&qu);while(qu--)solve(); | ~~~~~^~~~~~~~~~