QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#249604#5471. Interactive Number GuessingMaMengQiCompile Error//C++17647b2023-11-12 13:10:042023-11-12 13:10:04

Details

answer.code: In function ‘bool ok(ll)’:
answer.code:16:21: error: ‘z’ was not declared in this scope
   16 |         return v <= z;
      |                     ^
answer.code: In function ‘int main()’:
answer.code:20:9: error: ‘p’ was not declared in this scope
   20 |         p[0] = 1ll;
      |         ^
answer.code: In function ‘int query(ll)’:
answer.code:11:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   11 |         scanf("%d", &response);
      |         ~~~~~^~~~~~~~~~~~~~~~~