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_34575825_27759.cpp: In function 'll C(int, int)':
0_0_34575825_27759.cpp:13:63: 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%'
 ll C(int m,int n){return m<0||n<0||n<m?0:p[n]*pow(p[m],MOD-2)%MOD*pow(p[n-m],MOD-2)%MOD;}
                                                               ^
0_0_34575825_27759.cpp: In function 'int main()':
0_0_34575825_27759.cpp:33:29: error: invalid operands of types '__gnu_cxx::__promote_2<double, long long int, double, double>::__type {aka double}' and 'const ll {aka const long long int}' to binary 'operator%'
    2,(-x-y+2*z-i)/3),MOD-2)%MOD*(i*4/3+(-x-y+2*z-i)/3)
                             ^
0_0_34575825_27759.cpp:38:29: error: invalid operands of types '__gnu_cxx::__promote_2<double, long long int, double, double>::__type {aka double}' and 'const ll {aka const long long int}' to binary 'operator%'
    2,(-x-y+2*z-i)/3),MOD-2)%MOD*(i*4/3+(-x-y+2*z-i)/3)
                             ^
0_0_34575825_27759.cpp:43:31: error: invalid operands of types '__gnu_cxx::__promote_2<double, long long int, double, double>::__type {aka double}' and 'const ll {aka const long long int}' to binary 'operator%'
    2,(-x-y+2*z-i-1)/3),MOD-2)%MOD*((i-2)*4/3+2+(-x-y+2*z-i-1)/3)
                               ^
0_0_34575825_27759.cpp:48:31: error: invalid operands of types '__gnu_cxx::__promote_2<double, long long int, double, double>::__type {aka double}' and 'const ll {aka const long long int}' to binary 'operator%'
    2,(-x-y+2*z-i-1)/3),MOD-2)%MOD*((i-2)*4/3+2+(-x-y+2*z-i-1)/3)
                               ^


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-07-08 07:57:41, Gzip enabled