september.cpp: In function 'int solve(int, int, std::vector<int>, std::vector<std::vector<int> >)':
september.cpp:18:13: error: no matching function for call to 'std::vector<std::vector<int> >::clear(int)'
18 | G.clear(n+2);temp.clear(n+2);p.clear(n+2);
| ^
In file included from /usr/include/c++/10/vector:67,
from /usr/include/c++/10/functional:62,
from /usr/include/c++/10/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/10/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from september.cpp:2:
/usr/include/c++/10/bits/stl_vector.h:1498:7: note: candidate: 'void std::vector<_Tp, _Alloc>::clear() [with _Tp = std::vector<int>; _Alloc = std::allocator<std::vector<int> >]'
1498 | clear() _GLIBCXX_NOEXCEPT
| ^~~~~
/usr/include/c++/10/bits/stl_vector.h:1498:7: note: candidate expects 0 arguments, 1 provided
september.cpp:18:29: error: no matching function for call to 'std::vector<int>::clear(int)'
18 | G.clear(n+2);temp.clear(n+2);p.clear(n+2);
| ^
In file included from /usr/include/c++/10/vector:67,
from /usr/include/c++/10/functional:62,
from /usr/include/c++/10/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/10/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from september.cpp:2:
/usr/include/c++/10/bits/stl_vector.h:1498:7: note: candidate: 'void std::vector<_Tp, _Alloc>::clear() [with _Tp = int; _Alloc = std::allocator<int>]'
1498 | clear() _GLIBCXX_NOEXCEPT
| ^~~~~
/usr/include/c++/10/bits/stl_vector.h:1498:7: note: candidate expects 0 arguments, 1 provided
september.cpp:18:42: error: no matching function for call to 'std::vector<int>::clear(int)'
18 | G.clear(n+2);temp.clear(n+2);p.clear(n+2);
| ^
In file included from /usr/include/c++/10/vector:67,
from /usr/include/c++/10/functional:62,
from /usr/include/c++/10/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/10/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from september.cpp:2:
/usr/include/c++/10/bits/stl_vector.h:1498:7: note: candidate: 'void std::vector<_Tp, _Alloc>::clear() [with _Tp = int; _Alloc = std::allocator<int>]'
1498 | clear() _GLIBCXX_NOEXCEPT
| ^~~~~
/usr/include/c++/10/bits/stl_vector.h:1498:7: note: candidate expects 0 arguments, 1 provided
september.cpp:20:16: 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=0; i<S[0].size(); i++)
| ~^~~~~~~~~~~~
september.cpp:26:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
26 | for(int i=0; i<S[0].size(); i++)
| ~^~~~~~~~~~~~