sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:67:9: error: redeclaration of 'int x'
67 | int x=pos[1];
| ^
sorting.cpp:54:9: note: 'int x' previously declared here
54 | int x=pos[0];
| ^
sorting.cpp:77:9: warning: declaration of 'k' shadows a previous local [-Wshadow]
77 | int k=s[0];
| ^
sorting.cpp:8:7: note: shadowed declaration is here
8 | int k;
| ^
sorting.cpp:4:39: warning: unused parameter 'M' [-Wunused-parameter]
4 | int findSwapPairs(int N, int s[], int M, int X[], int Y[], int P[], int Q[]) {
| ~~~~^
sorting.cpp:4:46: warning: unused parameter 'X' [-Wunused-parameter]
4 | int findSwapPairs(int N, int s[], int M, int X[], int Y[], int P[], int Q[]) {
| ~~~~^~~
sorting.cpp:4:55: warning: unused parameter 'Y' [-Wunused-parameter]
4 | int findSwapPairs(int N, int s[], int M, int X[], int Y[], int P[], int Q[]) {
| ~~~~^~~