sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:43:13: warning: declaration of 't' shadows a previous local [-Wshadow]
int t=0;
^
sorting.cpp:22:13: note: shadowed declaration is here
int r=0,t;
^
sorting.cpp:5:20: warning: variable 'point' set but not used [-Wunused-but-set-variable]
int num[50005],point[50005],tag[50005];
^~~~~
sorting.cpp:5:33: warning: unused variable 'tag' [-Wunused-variable]
int num[50005],point[50005],tag[50005];
^~~
sorting.cpp:4:39: warning: unused parameter 'm' [-Wunused-parameter]
int findSwapPairs(int n, int s[], int m, int x[], int y[], int P[], int Q[]) {
^
sorting.cpp:4:48: warning: unused parameter 'x' [-Wunused-parameter]
int findSwapPairs(int n, int s[], int m, int x[], int y[], int P[], int Q[]) {
^
sorting.cpp:4:57: warning: unused parameter 'y' [-Wunused-parameter]
int findSwapPairs(int n, int s[], int m, int x[], int y[], int P[], int Q[]) {
^
sorting.cpp:27:22: warning: 't' may be used uninitialized in this function [-Wmaybe-uninitialized]
swap(s[0],s[t]);
^