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_38757729_622.cpp:89:15: error: call of overloaded 'ModInt()' is ambiguous
   89 | mint fact[maxn], infact[maxn];
      |               ^
0_0_38757729_622.cpp:21:9: note: candidate: 'ModInt<mod>::ModInt(int) [with int mod = 998244353]'
   21 |         ModInt(int x = 0) : x(x % MD) {}
      |         ^~~~~~
0_0_38757729_622.cpp:20:9: note: candidate: 'ModInt<mod>::ModInt(long long int) [with int mod = 998244353]'
   20 |         ModInt(ll x = 0) : x(x % MD) {}
      |         ^~~~~~
0_0_38757729_622.cpp:89:29: error: call of overloaded 'ModInt()' is ambiguous
   89 | mint fact[maxn], infact[maxn];
      |                             ^
0_0_38757729_622.cpp:21:9: note: candidate: 'ModInt<mod>::ModInt(int) [with int mod = 998244353]'
   21 |         ModInt(int x = 0) : x(x % MD) {}
      |         ^~~~~~
0_0_38757729_622.cpp:20:9: note: candidate: 'ModInt<mod>::ModInt(long long int) [with int mod = 998244353]'
   20 |         ModInt(ll x = 0) : x(x % MD) {}
      |         ^~~~~~


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-26 10:16:15, Gzip enabled