sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:24: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]
24 | if(V.size()<=mid+1) {
| ~~~~~~~~^~~~~~~
sorting.cpp:27:20: warning: conversion from 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
27 | for(int i=V.size();i<mid;i++)
| ~~~~~~^~
sorting.cpp:34: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]
34 | for(int i=0;i<ans.size();i++){
| ~^~~~~~~~~~~
sorting.cpp:38:17: warning: conversion from 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
38 | return ans.size();
| ~~~~~~~~^~
sorting.cpp:3:30: warning: unused parameter 'A' [-Wunused-parameter]
3 | int findSwapPairs(int N, int A[], int M, int x[], int y[], int P[], int Q[]) {
| ~~~~^~~