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_38583528_31260.cpp: In instantiation of 'Modular<Mod> Modular<Mod>::inv() const [with int Mod = 998244353]':
0_0_38583528_31260.cpp:368:31:   required from here
0_0_38583528_31260.cpp:55:29: error: no matching function for call to 'power(const Modular<998244353>&, int, int)'
         return Modular(power(*this, Mod - 2, Mod));
                        ~~~~~^~~~~~~~~~~~~~~~~~~~~
0_0_38583528_31260.cpp:28:3: note: candidate: 'template<class T> T power(T, int)'
 T power(T a, int b) {
   ^~~~~
0_0_38583528_31260.cpp:28:3: note:   template argument deduction/substitution failed:
0_0_38583528_31260.cpp:55:29: note:   candidate expects 2 arguments, 3 provided
         return Modular(power(*this, Mod - 2, 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-29 18:49:56, Gzip enabled