Problem | inversions |
---|---|
User | gordonlu |
Submission Time | 2023-11-19 10:27:34 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
inversions.cpp: In function ‘int main()’:
inversions.cpp:22:38: error: ‘number’ was not declared in this scope
22 | const auto inversionsAlgorithm = [&number] (const long long& thisNumber) {
| ^~~~~~
inversions.cpp: In lambda function:
inversions.cpp:23:11: error: ‘number’ is not captured
23 | return number > thisNumber;
| ^~~~~~
inversions.cpp:22:44: note: the lambda has no capture-default
22 | const auto inversionsAlgorithm = [&number] (const long long& thisNumber) {
| ^
inversions.cpp:22:38: note: ‘<typeprefixerror>number’ declared here
22 | const auto inversionsAlgorithm = [&number] (const long long& thisNumber) {
| ^~~~~~
In file included from /usr/include/c++/9/bits/stl_algobase.h:71,
from /usr/include/c++/9/bits/char_traits.h:39,