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_39555105_13028.cpp:24:9: error: 'ModInt<T>::ModInt(long long int)' cannot be overloaded with 'ModInt<T>::ModInt(long long int)'
   24 |         ModInt(long long x) : x(int(x % mod)) {}
      |         ^~~~~~
0_0_39555105_13028.cpp:23:9: note: previous declaration 'ModInt<T>::ModInt(long long int)'
   23 |         ModInt(int x = 0) : x(x % mod) {}
      |         ^~~~~~
0_0_39555105_13028.cpp: In constructor 'ModInt<T>::ModInt(long long int)':
0_0_39555105_13028.cpp:2:13: error: expected primary-expression before 'long'
    2 | #define int long long
      |             ^~~~
0_0_39555105_13028.cpp:24:33: note: in expansion of macro 'int'
   24 |         ModInt(long long x) : x(int(x % 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-23 10:44:06, Gzip enabled