QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#364204#6394. Turn on the LightMaMengQiCompile Error//C++17489b2024-03-24 13:00:182024-03-24 13:00:19

详细

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;
      |                             ^~~