sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:16:9: warning: declaration of 'int m' shadows a parameter [-Wshadow]
16 | int m = i;
| ^
sorting.cpp:12:37: note: shadowed declaration is here
12 | int findSwapPairs(int n,int s[],int m,int x[],int y[],int P[],int Q[]){
| ~~~~^
sorting.cpp:17:17: error: 'il' was not declared in this scope; did you mean 'i'?
17 | for(int j = il j < n; j++){
| ^~
| i
sorting.cpp:17:30: error: expected ';' before ')' token
17 | for(int j = il j < n; j++){
| ^
| ;
sorting.cpp:12:37: warning: unused parameter 'm' [-Wunused-parameter]
12 | int findSwapPairs(int n,int s[],int m,int x[],int y[],int P[],int Q[]){
| ~~~~^
sorting.cpp:12:43: 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:51: warning: unused parameter 'y' [-Wunused-parameter]
12 | int findSwapPairs(int n,int s[],int m,int x[],int y[],int P[],int Q[]){
| ~~~~^~~