swaps.cpp: In function 'void solve(int, int)':
swaps.cpp:21:18: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
21 | for(auto [a,b] : ans[i]) schedule(a,b);
| ^
swaps.cpp:23:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
23 | for(int j=0;j<ans[i].size();j++){
| ~^~~~~~~~~~~~~~
swaps.cpp:24:18: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
24 | auto [a,b] = ans[i][j];
| ^
swaps.cpp:31:14: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
31 | for(auto [_,i] : cnt) anss.push_back(i);
| ^
/usr/bin/ld: /tmp/cc3SBSmm.o: in function `safely_read_int()':
grader.cpp:(.text+0x0): multiple definition of `safely_read_int()'; /tmp/ccAItGLp.o:swaps.cpp:(.text+0x4b0): first defined here
/usr/bin/ld: /tmp/cc3SBSmm.o: in function `schedule(int, int)':
grader.cpp:(.text+0x50): multiple definition of `schedule(int, int)'; /tmp/ccAItGLp.o:swaps.cpp:(.text+0x500): first defined here
/usr/bin/ld: /tmp/cc3SBSmm.o: in function `answer(std::vector<int, std::allocator<int> >)':
grader.cpp:(.text+0x140): multiple definition of `answer(std::vector<int, std::allocator<int> >)'; /tmp/ccAItGLp.o:swaps.cpp:(.text+0x5f0): first defined here
/usr/bin/ld: /tmp/cc3SBSmm.o: in function `visit()':
grader.cpp:(.text+0x1f0): multiple definition of `visit()'; /tmp/ccAItGLp.o:swaps.cpp:(.text+0x6a0): first defined here
/usr/bin/ld: /tmp/cc3SBSmm.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccAItGLp.o:swaps.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status