xorsort.cpp: In function 'int main()':
xorsort.cpp:24:12: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wformat=]
24 | printf("%d\n", res.size()/2);
| ~^ ~~~~~~~~~~~~
| | |
| int std::vector<int>::size_type {aka long unsigned int}
| %ld
xorsort.cpp:25:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
25 | for (int i=0;i<res.size(); i+=2) {
| ~^~~~~~~~~~~