swaps.cpp: In function 'std::vector<int> solve()':
swaps.cpp:31:13: warning: comparison of integer expressions of different signedness: 'std::array<int, 4>::value_type' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
31 | if(a[2] < v[a[0]].size() && a[3] < v[a[1]].size())
swaps.cpp:31:38: warning: comparison of integer expressions of different signedness: 'std::array<int, 4>::value_type' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
31 | if(a[2] < v[a[0]].size() && a[3] < v[a[1]].size())
swaps.cpp:33:18: warning: comparison of integer expressions of different signedness: 'std::array<int, 4>::value_type' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
33 | else if(a[2] < v[a[0]].size() && a[3] == v[a[1]].size())
swaps.cpp:33:43: warning: comparison of integer expressions of different signedness: 'std::array<int, 4>::value_type' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
33 | else if(a[2] < v[a[0]].size() && a[3] == v[a[1]].size())
swaps.cpp:35:18: warning: comparison of integer expressions of different signedness: 'std::array<int, 4>::value_type' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
35 | else if(a[2] == v[a[0]].size() && a[3] < v[a[1]].size())
swaps.cpp:35:44: warning: comparison of integer expressions of different signedness: 'std::array<int, 4>::value_type' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
35 | else if(a[2] == v[a[0]].size() && a[3] < v[a[1]].size())
swaps.cpp:43:13: warning: comparison of integer expressions of different signedness: 'std::array<int, 4>::value_type' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
43 | if(a[2] < v[a[0]].size() && a[3] < v[a[1]].size())
swaps.cpp:43:38: warning: comparison of integer expressions of different signedness: 'std::array<int, 4>::value_type' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
43 | if(a[2] < v[a[0]].size() && a[3] < v[a[1]].size())
swaps.cpp:49:14: warning: comparison of integer expressions of different signedness: 'std::array<int, 4>::value_type' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
49 | if(a[2] == v[a[0]].size() && a[3] == (int)(v[a[1]].size()) - 1)
swaps.cpp:51:19: warning: comparison of integer expressions of different signedness: 'std::array<int, 4>::value_type' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
51 | else if(a[3] == v[a[1]].size() && a[2] == (int)(v[a[0]].size()) - 1)
swaps.cpp:55:18: warning: comparison of integer expressions of different signedness: 'std::array<int, 4>::value_type' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
55 | else if(a[2] < v[a[0]].size() && a[3] == v[a[1]].size())
swaps.cpp:55:43: warning: comparison of integer expressions of different signedness: 'std::array<int, 4>::value_type' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
55 | else if(a[2] < v[a[0]].size() && a[3] == v[a[1]].size())
swaps.cpp:65:18: warning: comparison of integer expressions of different signedness: 'std::array<int, 4>::value_type' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
65 | else if(a[2] == v[a[0]].size() && a[3] < v[a[1]].size())
swaps.cpp:65:44: warning: comparison of integer expressions of different signedness: 'std::array<int, 4>::value_type' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
65 | else if(a[2] == v[a[0]].size() && a[3] < v[a[1]].size())
swaps.cpp:78:17: warning: comparison of integer expressions of different signedness: 'std::array<int, 4>::value_type' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
78 | ok &= (a[2] == v[a[0]].size() && a[3] == v[a[1]].size()) ;
swaps.cpp:78:43: warning: comparison of integer expressions of different signedness: 'std::array<int, 4>::value_type' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
78 | ok &= (a[2] == v[a[0]].size() && a[3] == v[a[1]].size()) ;
swaps.cpp:81:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
81 | for(int i = 0 ; i < v.size() ; ++i)
| ~~^~~~~~~~~~
/usr/bin/ld: /tmp/cckl2CD5.o: in function `safely_read_int()':
grader.cpp:(.text+0x0): multiple definition of `safely_read_int()'; /tmp/cc8LuzQ3.o:swaps.cpp:(.text+0x150): first defined here
/usr/bin/ld: /tmp/cckl2CD5.o: in function `schedule(int, int)':
grader.cpp:(.text+0x50): multiple definition of `schedule(int, int)'; /tmp/cc8LuzQ3.o:swaps.cpp:(.text+0x1a0): first defined here
/usr/bin/ld: /tmp/cckl2CD5.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/cc8LuzQ3.o:swaps.cpp:(.text+0x290): first defined here
/usr/bin/ld: /tmp/cckl2CD5.o: in function `visit()':
grader.cpp:(.text+0x1f0): multiple definition of `visit()'; /tmp/cc8LuzQ3.o:swaps.cpp:(.text+0x340): first defined here
/usr/bin/ld: /tmp/cckl2CD5.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/cc8LuzQ3.o:swaps.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status