sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:21:7: error: redeclaration of 'int f'
21 | int f = -1;
| ^
sorting.cpp:10:7: note: 'int f' previously declared here
10 | int f = -1;
| ^
sorting.cpp:6:64: warning: unused parameter 'P' [-Wunused-parameter]
6 | int findSwapPairs(int N, int S[], int M, int X[], int Y[], int P[], int Q[])
| ~~~~^~~
sorting.cpp:6:73: warning: unused parameter 'Q' [-Wunused-parameter]
6 | int findSwapPairs(int N, int S[], int M, int X[], int Y[], int P[], int Q[])
| ~~~~^~~