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