sorting.cpp: In function 'bool f(int)':
sorting.cpp:25: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]
25 | if (Ans.size()>k)
| ~~~~~~~~~~^~
sorting.cpp:27: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]
27 | while (Ans.size()!=k)
| ~~~~~~~~~~^~~
sorting.cpp: In function 'int main()':
sorting.cpp:51: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]
51 | for (int i=0; i<Ans.size(); i++){
| ~^~~~~~~~~~~
/usr/bin/ld: /tmp/ccklLoIt.o: in function `main':
grader.c:(.text.startup+0x0): multiple definition of `main'; /tmp/cc5k7Fpw.o:sorting.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccklLoIt.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