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