mushrooms.cpp: In function 'int use_machine(std::vector<int>)':
mushrooms.cpp:18:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
18 | for (int i = 1; i < X.size(); i++) {
| ~~^~~~~~~~~~
mushrooms.cpp: In function 'int count_mushrooms(int)':
mushrooms.cpp:65:30: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
65 | if (Z.size() < j - i + 1 || j == n - 1) {
| ~~~~~~~~~^~~~~~~~~~~
mushrooms.cpp:96:30: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
96 | if (O.size() < j - i + 1 || j == n - 1) {
| ~~~~~~~~~^~~~~~~~~~~
mushrooms.cpp:104:17: warning: unused variable 'all' [-Wunused-variable]
104 | int all = (Ask.size() + 1) / 2;
| ^~~
/usr/bin/ld: /tmp/ccnRd20k.o: in function `use_machine(std::vector<int, std::allocator<int> >)':
stub.cpp:(.text+0x210): multiple definition of `use_machine(std::vector<int, std::allocator<int> >)'; /tmp/cci59Z1j.o:mushrooms.cpp:(.text+0x0): first defined here
/usr/bin/ld: /tmp/ccnRd20k.o: in function `main':
stub.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/cci59Z1j.o:mushrooms.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status