speedrun.cpp: In function 'void speed1(int, int)':
speedrun.cpp:26:5: error: 'fill_n' was not declared in this scope; did you mean 'std::fill_n'?
26 | fill_n(flag, N, false);
| ^~~~~~
| std::fill_n
In file included from /usr/include/c++/10/bits/char_traits.h:39,
from /usr/include/c++/10/ios:40,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from speedrun.cpp:2:
/usr/include/c++/10/bits/stl_algobase.h:1089:5: note: 'std::fill_n' declared here
1089 | fill_n(_OI __first, _Size __n, const _Tp& __value)
| ^~~~~~