sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:24:39: warning: declaration of 'M' shadows a global declaration [-Wshadow]
24 | int findSwapPairs(int n, int S[], int M, int X[], int Y[], int P[], int Q[]) {
| ~~~~^
sorting.cpp:22:4: note: shadowed declaration is here
22 | ll M=1e9+7;
| ^
sorting.cpp:24:39: warning: unused parameter 'M' [-Wunused-parameter]
24 | int findSwapPairs(int n, int S[], int M, int X[], int Y[], int P[], int Q[]) {
| ~~~~^
sorting.cpp:24:46: warning: unused parameter 'X' [-Wunused-parameter]
24 | int findSwapPairs(int n, int S[], int M, int X[], int Y[], int P[], int Q[]) {
| ~~~~^~~
sorting.cpp:24:55: warning: unused parameter 'Y' [-Wunused-parameter]
24 | int findSwapPairs(int n, int S[], int M, int X[], int Y[], int P[], int Q[]) {
| ~~~~^~~