Skip to content

Commit 3ad372e

Browse files
committed
Fix includes
1 parent d2d31aa commit 3ad372e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

cp-algo/number_theory/discrete_log.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#ifndef CP_ALGO_NUMBER_THEORY_DISCRETE_LOG_HPP
22
#define CP_ALGO_NUMBER_THEORY_DISCRETE_LOG_HPP
33
#include "euler.hpp"
4+
#include <optional>
45
namespace cp_algo::math {
56
// Find min non-negative x s.t. a*b^x = c (mod m)
67
std::optional<uint64_t> discrete_log(int64_t b, int64_t c, uint64_t m, int64_t a = 1) {

cp-algo/number_theory/primality.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#define CP_ALGO_NUMBER_THEORY_PRIMALITY_HPP
33
#include "modint.hpp"
44
#include <algorithm>
5+
#include <bit>
56
namespace cp_algo::math {
67
// https://en.wikipedia.org/wiki/Miller–Rabin_primality_test
78
bool is_prime(uint64_t m) {

0 commit comments

Comments
 (0)