Problem | inversions |
---|---|
User | gordonlu |
Submission Time | 2023-11-19 10:20:30 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
inversions.cpp: In function ‘int main()’:
inversions.cpp:10:32: error: template argument 1 is invalid
10 | vector<long long inversions (T);
| ^
inversions.cpp:10:32: error: template argument 2 is invalid
inversions.cpp:23:4: error: ‘inversions’ was not declared in this scope
23 | inversions[query] += count_if (array.begin() + index, array.end(), [&number] (int thisNumber) {
| ^~~~~~~~~~
inversions.cpp:23:25: error: ‘count_if’ was not declared in this scope
23 | inversions[query] += count_if (array.begin() + index, array.end(), [&number] (int thisNumber) {
| ^~~~~~~~
inversions.cpp:29:30: error: ‘inversions’ was not declared in this scope; did you mean ‘inversion’?
29 | for (const int& inversion : inversions) {
| ^~~~~~~~~~
| inversion