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_13929715_3921.cpp: In function 'int build(int, int)':
0_0_13929715_3921.cpp:43:61: error: invalid operands of types '__gnu_cxx::__promote_2<long long int, int, double, double>::__type {aka double}' and 'LL {aka long long int}' to binary 'operator%'
         num[p] = pow((LL)3, a[pl].Y) * pow((LL)2, pl - 1) % MOD;
                                                             ^
0_0_13929715_3921.cpp: In function 'int main()':
0_0_13929715_3921.cpp:97:70: error: invalid operands of types '__gnu_cxx::__promote_2<int, long long int, double, double>::__type {aka double}' and 'LL {aka long long int}' to binary 'operator%'
             (ans += pow(2, a[i].X) * ( (pow(3, a[i].Y) * pow(2, j) % MOD + calc(j + 1, i - 1) ) % MOD) % MOD) %= 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-12-02 09:49:16, Gzip enabled