sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:27:17: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
27 | P[i]=pos[i];
| ~~~~~^
sorting.cpp:12:43: warning: unused parameter 'M' [-Wunused-parameter]
12 | int findSwapPairs(int N, int S[], int M, int X[], int Y[], int P[], int Q[]) {
| ~~~~^
sorting.cpp:12:50: warning: unused parameter 'X' [-Wunused-parameter]
12 | int findSwapPairs(int N, int S[], int M, int X[], int Y[], int P[], int Q[]) {
| ~~~~^~~
sorting.cpp:12:59: warning: unused parameter 'Y' [-Wunused-parameter]
12 | int findSwapPairs(int N, int S[], int M, int X[], int Y[], int P[], int Q[]) {
| ~~~~^~~