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_15096478_22497.cpp: In function 'void dfs(int, int)':
0_0_15096478_22497.cpp:4:13: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
 #define mod 1e9+7
             ^
0_0_15096478_22497.cpp:32:19: note: in expansion of macro 'mod'
     ans=(ans*2ll)%mod;
                   ^
0_0_15096478_22497.cpp:4:13: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
 #define mod 1e9+7
             ^
0_0_15096478_22497.cpp:35:29: note: in expansion of macro 'mod'
     ans=(ans*pow2[cont1-1])%mod;
                             ^
0_0_15096478_22497.cpp: In function 'int main()':
0_0_15096478_22497.cpp:4:13: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
 #define mod 1e9+7
             ^
0_0_15096478_22497.cpp:46:33: note: in expansion of macro 'mod'
         pow2[i]=(pow2[i-1]*2ll)%mod;
                                 ^
0_0_15096478_22497.cpp:4:13: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
 #define mod 1e9+7
             ^
0_0_15096478_22497.cpp:69:43: note: in expansion of macro 'mod'
         printf("Case #%d: %I64d\n",cs,ans%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-26 13:55:37, Gzip enabled