Compile Error

/in/foo.cc: In function 'bool is_prime(ll)':
/in/foo.cc:20:16: error: 'pow_mod' was not declared in this scope
   20 |         ll x = pow_mod(a, d, n);
      |                ^~~~~~~
/in/foo.cc:24:17: error: 'mul_mod' was not declared in this scope
   24 |             x = mul_mod(x, x, n);
      |                 ^~~~~~~
/in/foo.cc: In lambda function:
/in/foo.cc:45:38: error: 'mul_mod' was not declared in this scope
   45 |         auto f = [&](ll x) { return (mul_mod(x, x, n) + c) % n; };
      |                                      ^~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:72:15: error: too few arguments to function 'void factor(ll, std::map<long long int, int>&)'
   72 |         factor(n);
      |         ~~~~~~^~~
/in/foo.cc:58:6: note: declared here
   58 | void factor(ll n, map<ll, int>& factors) {
      |      ^~~~~~

信息

递交者
类型
递交
题目
P1472 1.5.43:质因数分解
语言
C++
递交时间
2025-10-08 06:33:30
评测时间
2025-10-08 06:33:30
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes