QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#472933#4925. Adjacent PairsZhangYiDeCompile Error//C++20868b2024-07-11 20:27:182024-07-11 20:27:19

Details

answer.code: In lambda function:
answer.code:15:51: error: ‘c2’ was not declared in this scope
   15 |         sort(id+1,id+1+n,[&](int x, int y){return c2[x] >c2[y];});
      |                                                   ^~