sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:46:14: warning: declaration of 'i' shadows a previous local [-Wshadow]
for (int i = 0; i < N; ++i)
^
sorting.cpp:28:12: note: shadowed declaration is here
for (int i = 2; i < N; ++i)
^
sorting.cpp:49:9: warning: declaration of 'k1' shadows a previous local [-Wshadow]
int k1 = S[0];
^~
sorting.cpp:24:7: note: shadowed declaration is here
int k1 = S[0];
^~
sorting.cpp:50:9: warning: declaration of 'vol1' shadows a previous local [-Wshadow]
int vol1 = S[1];
^~~~
sorting.cpp:25:7: note: shadowed declaration is here
int vol1 = S[1];
^~~~
sorting.cpp:74:14: warning: declaration of 'i' shadows a previous local [-Wshadow]
for (int i = 0; i < N; ++i)
^
sorting.cpp:56:12: note: shadowed declaration is here
for (int i = 2; i < N; ++i)
^
sorting.cpp:77:9: warning: declaration of 'k1' shadows a previous local [-Wshadow]
int k1 = S[0];
^~
sorting.cpp:24:7: note: shadowed declaration is here
int k1 = S[0];
^~
sorting.cpp:78:9: warning: declaration of 'vol1' shadows a previous local [-Wshadow]
int vol1 = S[1];
^~~~
sorting.cpp:25:7: note: shadowed declaration is here
int vol1 = S[1];
^~~~
sorting.cpp:96:14: warning: declaration of 'i' shadows a previous local [-Wshadow]
for (int i = 0; i < N; ++i)
^
sorting.cpp:84:12: note: shadowed declaration is here
for (int i = 2; i < N; ++i)
^
sorting.cpp:99:9: warning: declaration of 'k1' shadows a previous local [-Wshadow]
int k1 = S[0];
^~
sorting.cpp:24:7: note: shadowed declaration is here
int k1 = S[0];
^~
sorting.cpp:100:9: warning: declaration of 'vol1' shadows a previous local [-Wshadow]
int vol1 = S[1];
^~~~
sorting.cpp:25:7: note: shadowed declaration is here
int vol1 = S[1];
^~~~
sorting.cpp:17:37: warning: unused parameter 'M' [-Wunused-parameter]
int findSwapPairs(int N,int S[],int M,int X[],int Y[],int P[],int Q[])
^
sorting.cpp:17:45: warning: unused parameter 'X' [-Wunused-parameter]
int findSwapPairs(int N,int S[],int M,int X[],int Y[],int P[],int Q[])
^
sorting.cpp:17:53: warning: unused parameter 'Y' [-Wunused-parameter]
int findSwapPairs(int N,int S[],int M,int X[],int Y[],int P[],int Q[])
^