File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 88#include < ranges>
99
1010namespace cp_algo ::math {
11- template <bool use_bump_alloc = false , int maxn = 100'000 >
11+ template <bool use_bump_alloc = false , int maxn = - 1 >
1212 auto facts (auto const & args) {
13+ static_assert (!use_bump_alloc || maxn > 0 , " maxn must be set if use_bump_alloc is true" );
1314 constexpr int max_mod = 1'000'000'000 ;
1415 constexpr int accum = 4 ;
1516 constexpr int simd_size = 8 ;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ void solve() {
1515 vector<base> args (n);
1616 for (auto &x : args) {cin >> x;}
1717 cp_algo::checkpoint (" read" );
18- auto res = facts (args);
18+ auto res = facts< true , 100'000 > (args);
1919 for (auto it: res) {cout << it << " \n " ;}
2020 cp_algo::checkpoint (" write" );
2121 cp_algo::checkpoint<1 >();
You can’t perform that action at this time.
0 commit comments