F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_39829693_17776.cpp: In function 'int main()':
0_0_39829693_17776.cpp:38:83: error: 'mod_inverse' was not declared in this scope
   38 |                     dp[i][j] = (dp[i][j] + (long long)dp[i][k-1] * w[k-1] % MOD * mod_inverse(total_weight, MOD) % MOD) % MOD;
      |                                                                                   ^~~~~~~~~~~
0_0_39829693_17776.cpp:41:83: error: 'mod_inverse' was not declared in this scope
   41 |                     dp[i][j] = (dp[i][j] + (long long)dp[k+1][j] * w[k-1] % MOD * mod_inverse(total_weight, MOD) % MOD) % MOD;
      |                                                                                   ^~~~~~~~~~~


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-25 19:50:22, Gzip enabled