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:140:14: warning: declaration of 'x' shadows a global declaration [-Wshadow]
140 | 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:141:13: warning: declaration of 'y' shadows a global declaration [-Wshadow]
141 | 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:150:13: warning: declaration of 'r' shadows a previous local [-Wshadow]
150 | 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;
| ^
sorting.cpp:151:17: warning: declaration of 'i' shadows a previous local [-Wshadow]
151 | for(int i = 1; i <= n; i++) c[i] = i;
| ^
sorting.cpp:148:13: note: shadowed declaration is here
148 | for(int i = ans; i >= 1; i--) {
| ^