sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:28:15: 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]
28 | for(int i=0;i<v.size();i++)
| ~^~~~~~~~~
sorting.cpp:5:11: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
5 | #define F first
sorting.cpp:30:14: note: in expansion of macro 'F'
30 | P[i]=v[i].F;
| ^
sorting.cpp:6:11: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
6 | #define S second
sorting.cpp:31:14: note: in expansion of macro 'S'
31 | Q[i]=v[i].S;
| ^
sorting.cpp:34:15: 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]
34 | return v.size();
| ~~~~~~^~
sorting.cpp:13:40: warning: unused parameter 'M' [-Wunused-parameter]
13 | int findSwapPairs(int N, int Se[], int M, int X[], int Y[], int P[], int Q[])
| ~~~~^
sorting.cpp:13:47: warning: unused parameter 'X' [-Wunused-parameter]
13 | int findSwapPairs(int N, int Se[], int M, int X[], int Y[], int P[], int Q[])
| ~~~~^~~
sorting.cpp:13:56: warning: unused parameter 'Y' [-Wunused-parameter]
13 | int findSwapPairs(int N, int Se[], int M, int X[], int Y[], int P[], int Q[])
| ~~~~^~~