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_37898358_32253.cpp: In instantiation of 'struct modint<1000003ll>':
0_0_37898358_32253.cpp:134:14:   required from here
0_0_37898358_32253.cpp:117:7: error: postfix 'modint<P>::mint modint<P>::operator++(ll) [with long long int P = 1000003ll; modint<P>::mint = modint<1000003ll>; ll = long long int]' must take 'int' as its argument
  mint operator++(int){return ++mint(*this);}
       ^
0_0_37898358_32253.cpp:118:7: error: postfix 'modint<P>::mint modint<P>::operator--(ll) [with long long int P = 1000003ll; modint<P>::mint = modint<1000003ll>; ll = long long int]' must take 'int' as its argument
  mint operator--(int){return --mint(*this);}
       ^
0_0_37898358_32253.cpp: In member function 'void std::valarray<_Tp>::resize(std::size_t, _Tp) [with _Tp = modint<1000003ll>; std::size_t = long long unsigned int]':
0_0_37898358_32253.cpp:134:14: note:   when instantiating default argument for call to void std::valarray<_Tp>::resize(std::size_t, _Tp) [with _Tp = modint<1000003ll>; std::size_t = long long unsigned int]
  fac.resize(n);
              ^


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-22 12:19:35, Gzip enabled