sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:14:35: warning: conversion to 'int' from 'long int' may alter its value [-Wconversion]
int idx = min_element(S+i, S+N) - S;
~~~~~~~~~~~~~~~~~~~~~~^~~
sorting.cpp:9:6: warning: unused variable 'idx1' [-Wunused-variable]
int idx1 = -1;
^~~~
sorting.cpp:10:6: warning: unused variable 'idx0' [-Wunused-variable]
int idx0 = -1;
^~~~
sorting.cpp:6:39: warning: unused parameter 'M' [-Wunused-parameter]
int findSwapPairs(int N, int S[], int M, int X[], int Y[], int P[], int Q[]) {
^