sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:21:17: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
21 | pos[S[i]] = i;
| ^
sorting.cpp:31:24: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
31 | pos[values[i]] = i;
| ^
sorting.cpp:12:39: 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:46: 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:55: warning: unused parameter 'Y' [-Wunused-parameter]
12 | int findSwapPairs(int N, int S[], int M, int X[], int Y[], int P[], int Q[]) {
| ~~~~^~~