sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:62:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
62 | for(int i=0;i<v.size();i++)
| ~^~~~~~~~~
sorting.cpp:5:15: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
5 | #define F first
sorting.cpp:64:15: note: in expansion of macro 'F'
64 | P[i]=v[i].F;
| ^
sorting.cpp:6:15: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
6 | #define S second
sorting.cpp:65:15: note: in expansion of macro 'S'
65 | Q[i]=v[i].S;
| ^
sorting.cpp:71:19: warning: conversion from 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
71 | return v.size();
| ~~~~~~^~
sorting.cpp:12:43: warning: unused parameter 'M' [-Wunused-parameter]
12 | int findSwapPairs(int N, int S[], int M, int X[], int Y[], int P[], int Q[])
| ~~~~^
sorting.cpp:12:50: warning: unused parameter 'X' [-Wunused-parameter]
12 | int findSwapPairs(int N, int S[], int M, int X[], int Y[], int P[], int Q[])
| ~~~~^~~
sorting.cpp:12:59: warning: unused parameter 'Y' [-Wunused-parameter]
12 | int findSwapPairs(int N, int S[], int M, int X[], int Y[], int P[], int Q[])
| ~~~~^~~