sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:20:16: warning: conversion to 'int' from 'll {aka long long int}' may alter its value [-Wconversion]
P[R]=i,Q[R]=p;
^
sorting.cpp:29: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:19:3: warning: 'p' may be used uninitialized in this function [-Wmaybe-uninitialized]
if(i!=p){
^~