sorting.cpp: In function 'int subtask1234::findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:46:24: warning: declaration of 'N' shadows a global declaration [-Wshadow]
46 | 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:47:3: note: in expansion of macro 'FOR'
47 | FOR(i, 0, N - 1) pos[i] = i;
| ^~~
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:48:3: note: in expansion of macro 'FOS'
48 | 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:53:3: note: in expansion of macro 'FOR'
53 | FOR(i, 1, 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:57:3: note: in expansion of macro 'FOR'
57 | FOR(i, 0, N - 2) {
| ^~~
sorting.cpp:58:9: warning: declaration of 'sorted' shadows a previous local [-Wshadow]
58 | bool sorted = 1;
| ^~~~~~
sorting.cpp:52:8: note: shadowed declaration is here
52 | bool sorted = 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:59:4: note: in expansion of macro 'FOR'
59 | FOR(i, 1, N - 1)
| ^~~
sorting.cpp:59:8: warning: declaration of 'i' shadows a previous local [-Wshadow]
59 | FOR(i, 1, N - 1)
| ^
sorting.cpp:32:32: note: in definition of macro 'FOR'
32 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
sorting.cpp:57:7: note: shadowed declaration is here
57 | FOR(i, 0, N - 2) {
| ^
sorting.cpp:32:32: note: in definition of macro 'FOR'
32 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
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:64:4: note: in expansion of macro 'FOR'
64 | 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:67:4: note: in expansion of macro 'FOR'
67 | 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:74:4: note: in expansion of macro 'FOR'
74 | FOR(i, 1, N - 1)
| ^~~
sorting.cpp:74:8: warning: declaration of 'i' shadows a previous local [-Wshadow]
74 | FOR(i, 1, N - 1)
| ^
sorting.cpp:32:32: note: in definition of macro 'FOR'
32 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
sorting.cpp:57:7: note: shadowed declaration is here
57 | FOR(i, 0, N - 2) {
| ^
sorting.cpp:32:32: note: in definition of macro 'FOR'
32 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(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:81:3: note: in expansion of macro 'FOR'
81 | FOR(i, N - 1, M - 1) {
| ^~~
sorting.cpp:82:9: warning: declaration of 'sorted' shadows a previous local [-Wshadow]
82 | bool sorted = 1;
| ^~~~~~
sorting.cpp:52:8: note: shadowed declaration is here
52 | bool sorted = 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:83:4: note: in expansion of macro 'FOR'
83 | FOR(i, 1, N - 1)
| ^~~
sorting.cpp:83:8: warning: declaration of 'i' shadows a previous local [-Wshadow]
83 | FOR(i, 1, N - 1)
| ^
sorting.cpp:32:32: note: in definition of macro 'FOR'
32 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
sorting.cpp:81:7: note: shadowed declaration is here
81 | FOR(i, N - 1, M - 1) {
| ^
sorting.cpp:32:32: note: in definition of macro 'FOR'
32 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(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:91:4: note: in expansion of macro 'FOR'
91 | FOR(i, 1, N - 1)
| ^~~
sorting.cpp:91:8: warning: declaration of 'i' shadows a previous local [-Wshadow]
91 | FOR(i, 1, N - 1)
| ^
sorting.cpp:32:32: note: in definition of macro 'FOR'
32 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
sorting.cpp:81:7: note: shadowed declaration is here
81 | FOR(i, N - 1, M - 1) {
| ^
sorting.cpp:32:32: note: in definition of macro 'FOR'
32 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^