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_21391048_21071.cpp: In function 'int main()':
0_0_21391048_21071.cpp:98:57: error: invalid operands of types '__gnu_cxx::__promote_2<long long int, long long int, double, double>::__type {aka double}' and 'const LL {aka const long long int}' to binary 'operator%'
                 B[k+1]=B[k+1]*(e[i]+k)%P*pow((LL)k,P-2)%P;
                                                         ^
0_0_21391048_21071.cpp:101:53: error: invalid operands of types '__gnu_cxx::__promote_2<long long int, long long int, double, double>::__type {aka double}' and 'const LL {aka const long long int}' to binary 'operator%'
         for(int k=1;k<x;k++)B[k]=B[k]*pow(F[k],P-2)%P;
                                                     ^
0_0_21391048_21071.cpp:103:72: error: invalid operands of types '__gnu_cxx::__promote_2<long long int, long long int, double, double>::__type {aka double}' and 'const LL {aka const long long int}' to binary 'operator%'
         for(int k=0,on=1;k<x;k++,on=-on) A[k]=(pow(F[k],P-2)*(LL)on+P)%P;
                                                                        ^


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-12-02 03:11:55, Gzip enabled