sorting.cpp: In function 'bool subtask1234::sorted(int, int*)':
sorting.cpp:46:18: warning: declaration of 'N' shadows a global declaration [-Wshadow]
46 | bool sorted(int N, int S[]) {
| ~~~~^
sorting.cpp:44:12: note: shadowed declaration is here
44 | const int N = 500;
| ^
sorting.cpp:32:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
32 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
sorting.cpp:48:3: note: in expansion of macro 'FOR'
48 | FOR(i, 1, N - 1)
| ^~~
sorting.cpp: In function 'int subtask1234::findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:53:24: warning: declaration of 'N' shadows a global declaration [-Wshadow]
53 | int findSwapPairs(int N, int S[], int M, int X[], int Y[], int P[], int Q[]) {
| ~~~~^
sorting.cpp:44:12: note: shadowed declaration is here
44 | const int N = 500;
| ^
sorting.cpp:32:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
32 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
sorting.cpp:54:3: note: in expansion of macro 'FOR'
54 | FOR(i, 0, N - 1) {
| ^~~
sorting.cpp:33:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
33 | #define FOS(i, r, l) for (int (i) = (r); (i) >= (l); --(i))
| ^
sorting.cpp:58:3: note: in expansion of macro 'FOS'
58 | FOS(i, M - 1, 0) {
| ^~~
sorting.cpp:32:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
32 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
sorting.cpp:63:3: note: in expansion of macro 'FOR'
63 | FOR(i, 0, N - 2) {
| ^~~
sorting.cpp:32:31: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
32 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
sorting.cpp:68:4: note: in expansion of macro 'FOR'
68 | FOR(j, 0, N - 1)
| ^~~
sorting.cpp:32:31: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
32 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
sorting.cpp:71:4: note: in expansion of macro 'FOR'
71 | FOR(j, 0, N - 1)
| ^~~
sorting.cpp:32:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
32 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
sorting.cpp:79:3: note: in expansion of macro 'FOR'
79 | FOR(i, N - 1, M - 1) {
| ^~~
sorting.cpp: In function 'bool solution::sorted(int, int*)':
sorting.cpp:92:18: warning: declaration of 'N' shadows a global declaration [-Wshadow]
92 | bool sorted(int N, int S[]) {
| ~~~~^
sorting.cpp:90:12: note: shadowed declaration is here
90 | const int N = 2e5;
| ^
sorting.cpp:32:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
32 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
sorting.cpp:94:3: note: in expansion of macro 'FOR'
94 | FOR(i, 1, N - 1)
| ^~~
sorting.cpp: In function 'int solution::findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:99:24: warning: declaration of 'N' shadows a global declaration [-Wshadow]
99 | int findSwapPairs(int N, int S[], int M, int X[], int Y[], int P[], int Q[]) {
| ~~~~^
sorting.cpp:90:12: note: shadowed declaration is here
90 | const int N = 2e5;
| ^
sorting.cpp:32:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
32 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
sorting.cpp:104:4: note: in expansion of macro 'FOR'
104 | FOR(i, 0, N - 1) {
| ^~~
sorting.cpp:33:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
33 | #define FOS(i, r, l) for (int (i) = (r); (i) >= (l); --(i))
| ^
sorting.cpp:109:4: note: in expansion of macro 'FOS'
109 | FOS(i, mid - 1, 0) {
| ^~~
sorting.cpp:32:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
32 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
sorting.cpp:113:4: note: in expansion of macro 'FOR'
113 | FOR(i, 0, N - 1) ipos[pos[i]] = i;
| ^~~
sorting.cpp:32:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
32 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
sorting.cpp:115:4: note: in expansion of macro 'FOR'
115 | FOR(i, 0, mid - 1) {
| ^~~
sorting.cpp:32:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
32 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
sorting.cpp:135:3: note: in expansion of macro 'FOR'
135 | FOR(i, 0, M - 1) P[i] = Q[i] = 0;
| ^~~
sorting.cpp:32:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
32 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
sorting.cpp:136:3: note: in expansion of macro 'FOR'
136 | FOR(i, 0, N - 1) {
| ^~~
sorting.cpp:33:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
33 | #define FOS(i, r, l) for (int (i) = (r); (i) >= (l); --(i))
| ^
sorting.cpp:141:3: note: in expansion of macro 'FOS'
141 | FOS(i, ans - 1, 0) {
| ^~~
sorting.cpp:32:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
32 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
sorting.cpp:145:3: note: in expansion of macro 'FOR'
145 | FOR(i, 0, N - 1) ipos[pos[i]] = i;
| ^~~
sorting.cpp:32:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
32 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
sorting.cpp:147:3: note: in expansion of macro 'FOR'
147 | FOR(i, 0, ans - 1) {
| ^~~