QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#194526#7520. Monster Generatorucup-team159#Compile Error//C++236.0kb2023-09-30 20:59:442023-11-04 18:36:33

Details

answer.code: In function ‘int main()’:
answer.code:183:17: error: expected ‘,’ or ‘;’ before ‘auto’
  183 |                 auto check = [&](P& a,P& b,P& c) -> bool {
      |                 ^~~~
answer.code:200:45: error: ‘check’ was not declared in this scope
  200 |                         while(si(cht)>=2 && check(cht[si(cht)-2],cht[si(cht)-1],w)) cht.pop_back();
      |                                             ^~~~~