sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:10:33: error: expected ';' before '}' token
10 | swap(s[i], s[j])
| ^
| ;
11 | }
| ~
sorting.cpp:5:39: warning: unused parameter 'm' [-Wunused-parameter]
5 | int findSwapPairs(int n, int s[], int m, int x[], int y[], int p[], int q[]) {
| ~~~~^
sorting.cpp:5:46: warning: unused parameter 'x' [-Wunused-parameter]
5 | int findSwapPairs(int n, int s[], int m, int x[], int y[], int p[], int q[]) {
| ~~~~^~~
sorting.cpp:5:55: warning: unused parameter 'y' [-Wunused-parameter]
5 | int findSwapPairs(int n, int s[], int m, int x[], int y[], int p[], int q[]) {
| ~~~~^~~