sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:21:15: warning: conversion to 'int' from 'll {aka long long int}' may alter its value [-Wconversion]
P[i]=i,Q[i]=p;
^
sorting.cpp:26:9: warning: conversion to 'int' from 'll {aka long long int}' may alter its value [-Wconversion]
return R;
^
sorting.cpp:14:37: warning: unused parameter 'M' [-Wunused-parameter]
int findSwapPairs(int N,int S[],int M,int X[],int Y[],int P[],int Q[]){
^
sorting.cpp:14:45: warning: unused parameter 'X' [-Wunused-parameter]
int findSwapPairs(int N,int S[],int M,int X[],int Y[],int P[],int Q[]){
^
sorting.cpp:14:53: warning: unused parameter 'Y' [-Wunused-parameter]
int findSwapPairs(int N,int S[],int M,int X[],int Y[],int P[],int Q[]){
^
sorting.cpp:21:9: warning: 'p' may be used uninitialized in this function [-Wmaybe-uninitialized]
P[i]=i,Q[i]=p;
~~~~~~^~~~~~~