xorsort.cpp: In function 'void bubbleSort()':
xorsort.cpp:22:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
22 | for (i = 0; i < v.size() - 1; i++)
| ~~^~~~~~~~~~~~~~
xorsort.cpp:25:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
25 | for (j = 0; j < v.size() - i - 1; j++)
| ~~^~~~~~~~~~~~~~~~~~
xorsort.cpp: In function 'int main()':
xorsort.cpp:66:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
66 | for (i = 0; i < ans.size(); i++)
| ~~^~~~~~~~~~~~
xorsort.cpp:57:18: warning: unused variable 'j' [-Wunused-variable]
57 | int x, n, i, j, s;
| ^