QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#813367#9783. Duloc Networkucup-team121#Compile Error//C++2016.5kb2024-12-14 04:07:542024-12-14 04:07:55

Details

answer.code: In lambda function:
answer.code:474:9: error: ‘Q’ is not captured
  474 |         Q++;
      |         ^
answer.code:473:18: note: the lambda has no capture-default
  473 |     auto ask = [n](vector<int> v) {
      |                  ^
answer.code:471:9: note: ‘int Q’ declared here
  471 |     int Q = 0;
      |         ^
answer.code:475:13: error: ‘Q’ is not captured
  475 |         if (Q > MX) abort();
      |             ^
answer.code:473:18: note: the lambda has no capture-default
  473 |     auto ask = [n](vector<int> v) {
      |                  ^
answer.code:471:9: note: ‘int Q’ declared here
  471 |     int Q = 0;
      |         ^
answer.code:475:17: error: ‘MX’ is not captured
  475 |         if (Q > MX) abort();
      |                 ^~
answer.code:473:18: note: the lambda has no capture-default
  473 |     auto ask = [n](vector<int> v) {
      |                  ^
answer.code:470:9: note: ‘int MX’ declared here
  470 |     int MX = 3500;
      |         ^~