Problem inversions
User bribritt
Submission Time 2023-04-15 10:25:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

inversions.cpp: In function ‘int inversions(int, int)’:
inversions.cpp:10:5: error: redeclaration of ‘int cnt’
10 | int cnt =inversions(l,mid)+inversions(mid+1,e);
| ^~~
inversions.cpp:6:24: note: ‘int cnt’ previously declared here
6 | int mid = (l+r)/2; int cnt = 0;
| ^~~
inversions.cpp:10:45: error: ‘e’ was not declared in this scope
10 | int cnt =inversions(l,mid)+inversions(mid+1,e);
| ^