sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:40:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
40 | for(int i=0;i<v.size();i++)
| ~^~~~~~~~~
sorting.cpp:48:18: warning: conversion from 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
48 | return v.size();
| ~~~~~~^~
sorting.cpp:14:40: warning: unused parameter 'M' [-Wunused-parameter]
14 | int findSwapPairs(int N, int ar[], int M, int X[], int Y[], int P[], int Q[])
| ~~~~^
sorting.cpp:14:47: warning: unused parameter 'X' [-Wunused-parameter]
14 | int findSwapPairs(int N, int ar[], int M, int X[], int Y[], int P[], int Q[])
| ~~~~^~~
sorting.cpp:14:56: warning: unused parameter 'Y' [-Wunused-parameter]
14 | int findSwapPairs(int N, int ar[], int M, int X[], int Y[], int P[], int Q[])
| ~~~~^~~