sorting.cpp: In function 'void Swap(int&, int&)':
sorting.cpp:22:25: warning: declaration of 'b' shadows a global declaration [-Wshadow]
void Swap(int &a, int &b){ a^=b;b^=a;a^=b;}
^
sorting.cpp:8:10: note: shadowed declaration is here
int a[N],b[N],c[N],id[N],qx[M],qy[M];
^
sorting.cpp:22:25: warning: declaration of 'a' shadows a global declaration [-Wshadow]
void Swap(int &a, int &b){ a^=b;b^=a;a^=b;}
^
sorting.cpp:8:5: note: shadowed declaration is here
int a[N],b[N],c[N],id[N],qx[M],qy[M];
^
sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:23:76: warning: declaration of 'M' shadows a global declaration [-Wshadow]
int findSwapPairs(int N, int S[], int M, int X[], int Y[], int P[], int Q[])
^
sorting.cpp:7:11: note: shadowed declaration is here
const int M=3*N;
^
sorting.cpp:23:76: warning: declaration of 'N' shadows a global declaration [-Wshadow]
int findSwapPairs(int N, int S[], int M, int X[], int Y[], int P[], int Q[])
^
sorting.cpp:6:11: note: shadowed declaration is here
const int N=200050;
^
sorting.cpp:35:10: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
mid=top+bot>>1;
~~~^~~~
sorting.cpp:25:12: warning: unused variable 'j' [-Wunused-variable]
int n,m,i,j,x,y;
^