sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:45:9: warning: declaration of 'i' shadows a previous local [-Wshadow]
rep(i, ps.size()) rep(j, i) {
^
sorting.cpp:8:28: note: in definition of macro 'rep'
#define rep(i, n) for (int i=0; i<(n); i++)
^
sorting.cpp:33:7: note: shadowed declaration is here
rep(i, M) {
^
sorting.cpp:8:28: note: in definition of macro 'rep'
#define rep(i, n) for (int i=0; i<(n); i++)
^
sorting.cpp:8:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define rep(i, n) for (int i=0; i<(n); i++)
^
sorting.cpp:45:5: note: in expansion of macro 'rep'
rep(i, ps.size()) rep(j, i) {
^~~
sorting.cpp:57:11: warning: declaration of 'i' shadows a previous local [-Wshadow]
rep(i, N) if (S[i] == x) y = i;
^
sorting.cpp:8:28: note: in definition of macro 'rep'
#define rep(i, n) for (int i=0; i<(n); i++)
^
sorting.cpp:33:7: note: shadowed declaration is here
rep(i, M) {
^
sorting.cpp:8:28: note: in definition of macro 'rep'
#define rep(i, n) for (int i=0; i<(n); i++)
^