sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:36:14: warning: comparison of integer expressions of different signedness: 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
36 | if(V.size()<=mid) {
| ~~~~~~~~^~~~~
sorting.cpp:41:8: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
41 | if(i<V.size() ){
| ~^~~~~~~~~
sorting.cpp:54: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]
54 | for(int i=0;i<ans.size();i++){
| ~^~~~~~~~~~~
sorting.cpp:58:17: warning: conversion from 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
58 | return ans.size();
| ~~~~~~~~^~
sorting.cpp:6:39: warning: unused parameter 'M' [-Wunused-parameter]
6 | int findSwapPairs(int N, int A[], int M, int x[], int y[], int P[], int Q[]) {
| ~~~~^