sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:33:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
33 | 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:22:39: warning: unused parameter 'm' [-Wunused-parameter]
22 | int findSwapPairs(int n, int S[], int m, int X[], int Y[], int P[], int Q[]) {
| ~~~~^
sorting.cpp:22:46: warning: unused parameter 'X' [-Wunused-parameter]
22 | int findSwapPairs(int n, int S[], int m, int X[], int Y[], int P[], int Q[]) {
| ~~~~^~~
sorting.cpp:22:55: warning: unused parameter 'Y' [-Wunused-parameter]
22 | int findSwapPairs(int n, int S[], int m, int X[], int Y[], int P[], int Q[]) {
| ~~~~^~~