mushrooms.cpp: In function 'int count_mushrooms(int)':
mushrooms.cpp:17:9: error: 'vector' was not declared in this scope
17 | vector <int> as, bs;
| ^~~~~~
mushrooms.cpp:17:9: note: suggested alternatives:
In file included from /usr/include/c++/13/vector:66,
from mushrooms.h:1,
from mushrooms.cpp:1:
/usr/include/c++/13/bits/stl_vector.h:428:11: note: 'std::vector'
428 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
/usr/include/c++/13/vector:86:13: note: 'std::pmr::vector'
86 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
| ^~~~~~
mushrooms.cpp:17:17: error: expected primary-expression before 'int'
17 | vector <int> as, bs;
| ^~~
mushrooms.cpp:18:9: error: 'as' was not declared in this scope
18 | as.push_back(0);
| ^~
mushrooms.cpp:20:44: error: 'bs' was not declared in this scope
20 | while (i < n && as.size() < 100 && bs.size() < 100) {
| ^~
mushrooms.cpp:32:9: error: 'ans' was not declared in this scope
32 | ans = as.size();
| ^~~
mushrooms.cpp:33:13: error: 'bs' was not declared in this scope
33 | if (bs.size() == 100) {
| ^~
mushrooms.cpp:36:33: error: expected primary-expression before 'int'
36 | vector <int> m;
| ^~~
mushrooms.cpp:38:33: error: 'm' was not declared in this scope
38 | m.push_back(bs[j - i - 1]);
| ^
mushrooms.cpp:42:45: error: 'm' was not declared in this scope
42 | int c = use_machine(m);
| ^
mushrooms.cpp:54:25: error: expected primary-expression before 'int'
54 | vector <int> m;
| ^~~
mushrooms.cpp:56:25: error: 'm' was not declared in this scope
56 | m.push_back(as[j - i - 1]);
| ^
mushrooms.cpp:61:37: error: 'm' was not declared in this scope
61 | int c = use_machine(m);
| ^