sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:5:11: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
5 | #define F first
sorting.cpp:50:14: note: in expansion of macro 'F'
50 | 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:51:14: note: in expansion of macro 'S'
51 | Q[i]=v[i].S;
| ^
sorting.cpp:55:9: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
55 | return r;
| ^
sorting.cpp:12:46: 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:55: warning: unused parameter 'Y' [-Wunused-parameter]
12 | int findSwapPairs(int N, int S[], int M, int X[], int Y[], int P[], int Q[]) {
| ~~~~^~~