sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:90:73: warning: declaration of 'Q' shadows a global declaration [-Wshadow]
90 | int findSwapPairs(int n, int S[], int m, int X[], int Y[], int P[], int Q[]) {
| ~~~~^~~
sorting.cpp:73:11: note: shadowed declaration is here
73 | int P[N], Q[N], x[N], y[N], X[N], Y[N], s[N], S[N], a[N];
| ^
sorting.cpp:90:64: warning: declaration of 'P' shadows a global declaration [-Wshadow]
90 | int findSwapPairs(int n, int S[], int m, int X[], int Y[], int P[], int Q[]) {
| ~~~~^~~
sorting.cpp:73:5: note: shadowed declaration is here
73 | int P[N], Q[N], x[N], y[N], X[N], Y[N], s[N], S[N], a[N];
| ^
sorting.cpp:90:55: warning: declaration of 'Y' shadows a global declaration [-Wshadow]
90 | int findSwapPairs(int n, int S[], int m, int X[], int Y[], int P[], int Q[]) {
| ~~~~^~~
sorting.cpp:73:35: note: shadowed declaration is here
73 | int P[N], Q[N], x[N], y[N], X[N], Y[N], s[N], S[N], a[N];
| ^
sorting.cpp:90:46: warning: declaration of 'X' shadows a global declaration [-Wshadow]
90 | int findSwapPairs(int n, int S[], int m, int X[], int Y[], int P[], int Q[]) {
| ~~~~^~~
sorting.cpp:73:29: note: shadowed declaration is here
73 | int P[N], Q[N], x[N], y[N], X[N], Y[N], s[N], S[N], a[N];
| ^
sorting.cpp:90:30: warning: declaration of 'S' shadows a global declaration [-Wshadow]
90 | int findSwapPairs(int n, int S[], int m, int X[], int Y[], int P[], int Q[]) {
| ~~~~^~~
sorting.cpp:73:47: note: shadowed declaration is here
73 | int P[N], Q[N], x[N], y[N], X[N], Y[N], s[N], S[N], a[N];
| ^
sorting.cpp:138:14: warning: declaration of 'x' shadows a global declaration [-Wshadow]
138 | for(auto x : q) {
| ^
sorting.cpp:73:17: note: shadowed declaration is here
73 | int P[N], Q[N], x[N], y[N], X[N], Y[N], s[N], S[N], a[N];
| ^
sorting.cpp:139:13: warning: declaration of 'y' shadows a global declaration [-Wshadow]
139 | int y = a[x];
| ^
sorting.cpp:73:23: note: shadowed declaration is here
73 | int P[N], Q[N], x[N], y[N], X[N], Y[N], s[N], S[N], a[N];
| ^
sorting.cpp:149:13: warning: declaration of 'r' shadows a previous local [-Wshadow]
149 | int r = op.back().fi, t = op.back().se;
| ^
sorting.cpp:100:16: note: shadowed declaration is here
100 | int l = 0, r = m, ans = 0;
| ^