mushrooms.cpp: In function 'int count_mushrooms(int)':
mushrooms.cpp:24:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
24 | while (pos < v.size()/*a.size() < VAL || b.size() < VAL*/) {
| ~~~~^~~~~~~~~~
mushrooms.cpp:27:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
27 | if (pos < v.size()) arr.push_back(v[pos]), ++pos;
| ~~~~^~~~~~~~~~
mushrooms.cpp:29:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
29 | if (pos < v.size()) arr.push_back(v[pos]), ++pos;
| ~~~~^~~~~~~~~~
mushrooms.cpp:31:17: error: 'use_machine' was not declared in this scope
31 | int ret = use_machine(arr);
| ^~~~~~~~~~~
mushrooms.cpp:44:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
44 | if (pos < v.size()) arr.push_back(v[pos]), ++pos;
| ~~~~^~~~~~~~~~
mushrooms.cpp:46:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
46 | if (pos < v.size()) arr.push_back(v[pos]), ++pos;
| ~~~~^~~~~~~~~~
mushrooms.cpp:48:17: error: 'use_machine' was not declared in this scope
48 | int ret = use_machine(arr);
| ^~~~~~~~~~~
mushrooms.cpp:61:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
61 | if (pos < v.size()) arr.push_back(v[pos]), ++pos;
| ~~~~^~~~~~~~~~
mushrooms.cpp:63:17: error: 'use_machine' was not declared in this scope
63 | int ret = use_machine(arr);
| ^~~~~~~~~~~