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_13929272_13631.cpp: In function 'int build(int, int)':
0_0_13929272_13631.cpp:43:53: error: invalid operands of types '__gnu_cxx::__promote_2<int, long long int, double, double>::__type {aka double}' and 'const LL {aka const long long int}' to binary 'operator%'
         num[p] = pow(3, a[pl].Y) * pow(2, pl - 1) % MOD;
                                                     ^
0_0_13929272_13631.cpp: In function 'int main()':
0_0_13929272_13631.cpp:97:69: error: invalid operands of types '__gnu_cxx::__promote_2<int, long long int, double, double>::__type {aka double}' and 'const LL {aka const 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;
                                                                     ^


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-30 08:58:29, Gzip enabled