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_29149246_16018.cpp: In function 'long long int quick_pow(long long int, long long int)':
0_0_29149246_16018.cpp:9:13: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
 #define mod 1e8+7
             ^
0_0_29149246_16018.cpp:19:26: note: in expansion of macro 'mod'
   if(m&1) sum=(sum*base)%mod;
                          ^
0_0_29149246_16018.cpp:9:13: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
 #define mod 1e8+7
             ^
0_0_29149246_16018.cpp:21:23: note: in expansion of macro 'mod'
   base= (base * base)%mod;
                       ^
0_0_29149246_16018.cpp: In function 'int main()':
0_0_29149246_16018.cpp:9:13: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
 #define mod 1e8+7
             ^
0_0_29149246_16018.cpp:59:7: note: in expansion of macro 'mod'
   k=k%mod;
       ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-02-27 22:40:21, Gzip enabled