Problem | inversions |
---|---|
User | YEethui |
Submission Time | 2024-04-04 08:35:07 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
inversions.cpp: In function ‘int mergeSort(int*, int)’:
inversions.cpp:5:9: error: ‘_mergeSort’ was not declared in this scope; did you mean ‘mergeSort’?
5 | return _mergeSort(a, temp, 0, size - 1);
| ^~~~~~~~~~
| mergeSort
inversions.cpp: In function ‘int _mergeSort(int*, int*, int, int)’:
inversions.cpp:13:16: error: ‘merge’ was not declared in this scope
13 | inv_count += merge(a, temp, left, mid + 1, right);
| ^~~~~
inversions.cpp: In function ‘int main()’:
inversions.cpp:38:40: error: expected ‘;’ before ‘cout’
38 | for(int i = 0; i < n; i++) cin >> a[i]
| ^
| ;
39 | cout << mergeSort(a, n) << endl;
| ~~~~