xorsort.cpp: In function 'void solve1()':
xorsort.cpp:12:40: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
12 | #define FOR(i, a, b) for(auto i = a; i < b; i++)
......
31 | FOR(j, 0, in.size()) {
| ~~~~~~~~~~~~~~~
xorsort.cpp:31:5: note: in expansion of macro 'FOR'
31 | FOR(j, 0, in.size()) {
| ^~~
xorsort.cpp:12:40: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
12 | #define FOR(i, a, b) for(auto i = a; i < b; i++)
......
41 | FOR(i, j + 1, in.size()) {
| ~~~~~~~~~~~~~~~~~~~
xorsort.cpp:41:9: note: in expansion of macro 'FOR'
41 | FOR(i, j + 1, in.size()) {
| ^~~
xorsort.cpp:12:40: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
12 | #define FOR(i, a, b) for(auto i = a; i < b; i++)
......
46 | FOR(i, 0, ans.size()) {
| ~~~~~~~~~~~~~~~~
xorsort.cpp:46:5: note: in expansion of macro 'FOR'
46 | FOR(i, 0, ans.size()) {
| ^~~
xorsort.cpp: In function 'void solve2()':
xorsort.cpp:12:40: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
12 | #define FOR(i, a, b) for(auto i = a; i < b; i++)
......
66 | FOR(i, 0, ans.size()) {
| ~~~~~~~~~~~~~~~~
xorsort.cpp:66:5: note: in expansion of macro 'FOR'
66 | FOR(i, 0, ans.size()) {
| ^~~