sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:8:34: warning: conversion from 'long int' to 'int' may change value [-Wconversion]
8 | int ind = find(s+i,s+n,i)-s;
| ~~~~~~~~~~~~~~~^~
sorting.cpp:6:39: warning: unused parameter 'm' [-Wunused-parameter]
6 | int findSwapPairs(int n, int s[], int m, int x[], int y[], int p[], int q[]) {
| ~~~~^
sorting.cpp:6:46: warning: unused parameter 'x' [-Wunused-parameter]
6 | int findSwapPairs(int n, int s[], int m, int x[], int y[], int p[], int q[]) {
| ~~~~^~~
sorting.cpp:6:55: warning: unused parameter 'y' [-Wunused-parameter]
6 | int findSwapPairs(int n, int s[], int m, int x[], int y[], int p[], int q[]) {
| ~~~~^~~