minerals.cpp:20:6: error: variable or field 'func' declared void
20 | void func(vector<int> v, bool ok){
| ^~~~
minerals.cpp:20:11: error: 'vector' was not declared in this scope
20 | void func(vector<int> v, bool ok){
| ^~~~~~
minerals.cpp:20:11: note: suggested alternatives:
In file included from /usr/include/c++/11/vector:67,
from /usr/include/c++/11/functional:62,
from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/11/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
from minerals.cpp:3:
/usr/include/c++/11/bits/stl_vector.h:389:11: note: 'std::vector'
389 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
In file included from /usr/include/c++/11/functional:62,
from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/11/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
from minerals.cpp:3:
/usr/include/c++/11/vector:86:13: note: 'std::pmr::vector'
86 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
| ^~~~~~
minerals.cpp:20:18: error: expected primary-expression before 'int'
20 | void func(vector<int> v, bool ok){
| ^~~
minerals.cpp:20:26: error: expected primary-expression before 'bool'
20 | void func(vector<int> v, bool ok){
| ^~~~
minerals.cpp: In function 'void Solve(int)':
minerals.cpp:67:9: error: 'vector' was not declared in this scope
67 | vector<int> v;
| ^~~~~~
minerals.cpp:67:9: note: suggested alternatives:
In file included from /usr/include/c++/11/vector:67,
from /usr/include/c++/11/functional:62,
from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/11/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
from minerals.cpp:3:
/usr/include/c++/11/bits/stl_vector.h:389:11: note: 'std::vector'
389 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
In file included from /usr/include/c++/11/functional:62,
from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/11/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
from minerals.cpp:3:
/usr/include/c++/11/vector:86:13: note: 'std::pmr::vector'
86 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
| ^~~~~~
minerals.cpp:67:16: error: expected primary-expression before 'int'
67 | vector<int> v;
| ^~~
minerals.cpp:69:17: error: 'v' was not declared in this scope
69 | v.push_back(i);
| ^
minerals.cpp:71:14: error: 'v' was not declared in this scope
71 | func(v, 0);
| ^
minerals.cpp:71:9: error: 'func' was not declared in this scope
71 | func(v, 0);
| ^~~~