september.cpp: In function 'int solve(int, int, std::vector<int>, std::vector<std::vector<int> >)':
september.cpp:17:30: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class std::vector<int>' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess]
17 | memset(idx, 0, sizeof idx);
| ^
In file included from /usr/include/c++/10/vector:67,
from september.h:1,
from september.cpp:1:
/usr/include/c++/10/bits/stl_vector.h:389:11: note: 'class std::vector<int>' declared here
389 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
september.cpp:20:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
20 | for(int i = 1;i < F.size(); i++)adj[F[i]].push_back(i);
| ~~^~~~~~~~~~
september.cpp:25:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
25 | for(int i = 0;i < vec.size(); i++){
| ~~^~~~~~~~~~~~
september.cpp:26:13: warning: unused variable 'y' [-Wunused-variable]
26 | int y = 0;
| ^