sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:8:6: warning: variable 'ans' set but not used [-Wunused-but-set-variable]
int ans = 0;
^~~
sorting.cpp:5:39: warning: unused parameter 'M' [-Wunused-parameter]
int findSwapPairs(int N, int S[], int M, int X[], int Y[], int P[], int Q[]) {
^
sorting.cpp:5:48: warning: unused parameter 'X' [-Wunused-parameter]
int findSwapPairs(int N, int S[], int M, int X[], int Y[], int P[], int Q[]) {
^
sorting.cpp:5:57: warning: unused parameter 'Y' [-Wunused-parameter]
int findSwapPairs(int N, int S[], int M, int X[], int Y[], int P[], int Q[]) {
^