sorting.cpp: In function 'bool check(int)':
sorting.cpp:29:22: warning: comparison of integer expressions of different signedness: 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
29 | while (swaps.size() < t) swaps.emplace_back(0, 0);
| ~~~~~~~~~~~~~^~~
sorting.cpp:30:19: warning: comparison of integer expressions of different signedness: 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
30 | if (swaps.size() > t) return false;
| ~~~~~~~~~~~~~^~~
sorting.cpp: In function 'int main()':
sorting.cpp:74:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
74 | for (int i = 0; i < ans.size(); i++) {
| ~~^~~~~~~~~~~~
sorting.cpp:60:6: warning: unused variable 'sw' [-Wunused-variable]
60 | int sw = 0;
| ^~
/usr/bin/ld: /tmp/ccML9Zp5.o: in function `main':
grader.c:(.text.startup+0x0): multiple definition of `main'; /tmp/ccqP3z48.o:sorting.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccML9Zp5.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