QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#364204#6394. Turn on the LightMaMengQiCompile Error//C++17489b2024-03-24 13:00:182024-03-24 13:00:19

Details

answer.code: In function ‘int main()’:
answer.code:10:16: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
   10 |         cin >> n;
      |                ^
      |                yn
answer.code:22:29: error: ‘i’ was not declared in this scope
   22 |                 int s = ask(i);
      |                             ^
answer.code:28:29: error: ‘mid’ was not declared in this scope
   28 |                         l = mid + 1;
      |                             ^~~
answer.code:31:29: error: ‘mid’ was not declared in this scope
   31 |                         r = mid;
      |                             ^~~