swap.cpp: In function 'void init(int, int, int*, int*, int*)':
swap.cpp:19:15: warning: variable 'M' set but not used [-Wunused-but-set-variable]
19 | for (auto M : mins) M = INT_MAX;
| ^
/usr/bin/ld: /tmp/ccgwGO43.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/cc6Xeas3.o:swap.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccgwGO43.o: in function `main':
grader.cpp:(.text.startup+0x1c3): undefined reference to `init(int, int, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status