QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#428673#5981. Costly Binary SearchQBFCompile Error//C++20952b2024-06-01 20:54:382024-06-01 20:54:41

Details

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