sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:27:18: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' may change value [-Wconversion]
27 | Q[r] = to[x];
| ^
sorting.cpp:28:15: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' may change value [-Wconversion]
28 | x = to[x];
| ^
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[]) {
| ~~~~^~~