| Problem | competition |
|---|---|
| User | R9q5P8 |
| Submission Time | 2025-10-28 18:05:53 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
competition.cpp: In lambda function:
competition.cpp:32:61: error: ‘deltaScores’ is not captured
32 | sort(idx.begin(), idx.end(), [](auto &i1, auto &i2){return deltaScores[i1] > deltaScores[i2];});
| ^~~~~~~~~~~
competition.cpp:32:32: note: the lambda has no capture-default
32 | sort(idx.begin(), idx.end(), [](auto &i1, auto &i2){return deltaScores[i1] > deltaScores[i2];});
| ^
competition.cpp:14:14: note: ‘std::vector<int> deltaScores’ declared here
14 | vector<int> deltaScores(n);
| ^~~~~~~~~~~
competition.cpp:32:79: error: ‘deltaScores’ is not captured
32 | sort(idx.begin(), idx.end(), [](auto &i1, auto &i2){return deltaScores[i1] > deltaScores[i2];});
| ^~~~~~~~~~~
competition.cpp:32:32: note: the lambda