QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#154305#6693. Fast and Fatucup-team933#Compile Error//C++201.7kb2023-08-31 16:26:572023-08-31 16:26:58

详细

answer.code: In function ‘void solve()’:
answer.code:97:28: error: ‘ok’ was not declared in this scope
   97 |                         if(ok)
      |                            ^~
answer.code:98:35: error: ‘mid’ was not declared in this scope
   98 |                                 l=mid+1;
      |                                   ^~~
answer.code:100:35: error: ‘mid’ was not declared in this scope
  100 |                                 r=mid-1;
      |                                   ^~~
answer.code: At global scope:
answer.code:102:9: error: ‘cout’ does not name a type
  102 |         cout<<r<<endl;
      |         ^~~~
answer.code:103:1: error: expected declaration before ‘}’ token
  103 | }
      | ^