QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#428676#5981. Costly Binary SearchQBFCompile Error//C++20901b2024-06-01 20:55:072024-06-01 20:55:08

详细

answer.code: In function ‘void Init()’:
answer.code:8:25: error: expected ‘)’ before ‘;’ token
    8 | memset(lst,0,sizeof(lst);
      |       ~                 ^
      |                         )
answer.code: In function ‘void Work()’:
answer.code:12:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   12 |     scanf("%s",a+1);
      |     ~~~~~^~~~~~~~~~
answer.code: In function ‘int main()’:
answer.code:35:20: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   35 |         int T;scanf("%d",&T);
      |               ~~~~~^~~~~~~~~