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