mushrooms.cpp: In function 'int count_cocaine(int)':
mushrooms.cpp:14:17: error: 'use_machine' was not declared in this scope
14 | if (use_machine({0, i}) == 0) sum++;
| ^~~~~~~~~~~
mushrooms.cpp:21:13: error: 'use_machine' was not declared in this scope
21 | if (use_machine({0, i}) == 0) {
| ^~~~~~~~~~~
mushrooms.cpp:33:19: error: 'use_machine' was not declared in this scope
33 | sum = use_machine({j, 0, j + 1, A_count[1]});
| ^~~~~~~~~~~
mushrooms.cpp:35:19: error: 'use_machine' was not declared in this scope
35 | sum = use_machine({j, B_count[0], j + 1, B_count[1]});
| ^~~~~~~~~~~
mushrooms.cpp:64:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
64 | while (i < n && d < A_count.size()) {
| ~~^~~~~~~~~~~~~~~~
mushrooms.cpp:70:23: error: 'use_machine' was not declared in this scope
70 | int sum = use_machine(temp);
| ^~~~~~~~~~~
mushrooms.cpp:78:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
78 | while (i < n && d < B_count.size()) {
| ~~^~~~~~~~~~~~~~~~
mushrooms.cpp:84:23: error: 'use_machine' was not declared in this scope
84 | int sum = use_machine(temp);
| ^~~~~~~~~~~