sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:15:22: warning: conversion from 'long int' to 'int' may change value [-Wconversion]
15 | P[o]=i;
| ^
sorting.cpp:16:22: warning: conversion from 'long int' to 'int' may change value [-Wconversion]
16 | Q[o]=y;
| ^
sorting.cpp:24:12: warning: conversion from 'long int' to 'int' may change value [-Wconversion]
24 | return o;
| ^
sorting.cpp:4:39: warning: unused parameter 'M' [-Wunused-parameter]
4 | int findSwapPairs(int N, int S[], int M, int X[], int Y[], int P[], int Q[]) {
| ~~~~^
sorting.cpp:4:46: warning: unused parameter 'X' [-Wunused-parameter]
4 | int findSwapPairs(int N, int S[], int M, int X[], int Y[], int P[], int Q[]) {
| ~~~~^~~
sorting.cpp:4:55: warning: unused parameter 'Y' [-Wunused-parameter]
4 | int findSwapPairs(int N, int S[], int M, int X[], int Y[], int P[], int Q[]) {
| ~~~~^~~