koala.cpp: In function 'int maxValue(int, int)':
koala.cpp:24:5: error: 'vector' was not declared in this scope
24 | vector<int> v;
| ^~~~~~
koala.cpp:24:5: note: suggested alternatives:
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from koala.cpp:2:
/usr/include/c++/9/bits/stl_vector.h:386:11: note: 'std::vector'
386 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
In file included from /usr/include/c++/9/functional:62,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from koala.cpp:2:
/usr/include/c++/9/vector:90:13: note: 'std::pmr::vector'
90 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
| ^~~~~~
koala.cpp:24:12: error: expected primary-expression before 'int'
24 | vector<int> v;
| ^~~
koala.cpp:27:6: error: 'v' was not declared in this scope
27 | v.push_back(i);
| ^
koala.cpp:29:13: error: 'v' was not declared in this scope
29 | while (!v.empty()) {
| ^
koala.cpp:33:13: error: expected primary-expression before 'int'
33 | vector<int> v2 = v;
| ^~~
koala.cpp:35:19: error: 'v2' was not declared in this scope
35 | for (int i : v2) {
| ^~
koala.cpp:41:9: error: 'v' was not declared in this scope
41 | return v[0];
| ^