sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:7:13: warning: declaration of 'int x' shadows a parameter [-Wshadow]
7 | int x = i;
| ^
sorting.cpp:5:46: note: shadowed declaration is here
5 | int findSwapPairs(int n, int s[], int m, int x[], int y[], int p[], int q[]) {
| ~~~~^~~
sorting.cpp:7:13: warning: unused variable 'x' [-Wunused-variable]
7 | int x = i;
| ^
sorting.cpp:5:39: warning: unused parameter 'm' [-Wunused-parameter]
5 | int findSwapPairs(int n, int s[], int m, int x[], int y[], int p[], int q[]) {
| ~~~~^
sorting.cpp:5:46: warning: unused parameter 'x' [-Wunused-parameter]
5 | int findSwapPairs(int n, int s[], int m, int x[], int y[], int p[], int q[]) {
| ~~~~^~~
sorting.cpp:5:55: warning: unused parameter 'y' [-Wunused-parameter]
5 | int findSwapPairs(int n, int s[], int m, int x[], int y[], int p[], int q[]) {
| ~~~~^~~