insects.cpp: In function 'int min_cardinality(int)':
insects.cpp:24:40: error: no matching function for call to 'iota(std::vector<int>::iterator, std::vector<int>::iterator)'
24 | vector<int> v(n,0); iota(all(v));
| ^
In file included from /usr/include/c++/10/numeric:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:84,
from insects.cpp:2:
/usr/include/c++/10/bits/stl_numeric.h:88:5: note: candidate: 'template<class _ForwardIterator, class _Tp> void std::iota(_ForwardIterator, _ForwardIterator, _Tp)'
88 | iota(_ForwardIterator __first, _ForwardIterator __last, _Tp __value)
| ^~~~
/usr/include/c++/10/bits/stl_numeric.h:88:5: note: template argument deduction/substitution failed:
insects.cpp:24:40: note: candidate expects 3 arguments, 2 provided
24 | vector<int> v(n,0); iota(all(v));
| ^
insects.cpp:27:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
27 | if(!!inside[i] or tot==D*mid) continue; move_inside(i);
| ^~
insects.cpp:27:53: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
27 | if(!!inside[i] or tot==D*mid) continue; move_inside(i);
| ^~~~~~~~~~~