sorting.cpp: In function 'int main()':
sorting.cpp:47:21: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
47 | int mid = l + r >> 1;
| ~~^~~
sorting.cpp:72:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
72 | for (int j = 1; j < cycle.size(); ++j) {
| ~~^~~~~~~~~~~~~~
sorting.cpp:82:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
82 | if (round > ans.size()) {
| ~~~~~~^~~~~~~~~~~~
/usr/bin/ld: /tmp/ccZ6gwna.o: in function `main':
grader.c:(.text.startup+0x0): multiple definition of `main'; /tmp/ccpzUPBa.o:sorting.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccZ6gwna.o: in function `main':
grader.c:(.text.startup+0x4eb): undefined reference to `findSwapPairs(int, int*, int, int*, int*, int*, int*)'
collect2: error: ld returned 1 exit status