QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#76938#5507. Investorsnerds_assemble#Compile Error//C++205.0kb2023-02-12 18:24:392023-02-12 18:24:42

詳細信息

answer.code: In lambda function:
answer.code:126:18: error: ‘itr’ was not declared in this scope
  126 |         if(rc<1||itr>20)
      |                  ^~~
answer.code: In function ‘void solve(lli, const vi&)’:
answer.code:133:27: error: no match for call to ‘(solve(lli, const vi&)::<lambda()>) (lli&)’
  133 |         mytype curm=getMid(itr);
      |                     ~~~~~~^~~~~
answer.code:125:17: note: candidate: ‘solve(lli, const vi&)::<lambda()>’
  125 |     auto getMid=[&]()->mytype{
      |                 ^
answer.code:125:17: note:   candidate expects 0 arguments, 1 provided
answer.code:142:28: error: ‘itr’ was not declared in this scope
  142 |         mytype cost=getMid(itr);
      |                            ^~~