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