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_15870758_2263.cpp: In function 'int unite(int, int)':
0_0_15870758_2263.cpp:35:48: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
     LL res = (LL)num[x] * (LL)num[y] % (MOD - 1);
                                                ^
0_0_15870758_2263.cpp: In function 'long long int quickPow(long long int, long long int)':
0_0_15870758_2263.cpp:9:13: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
 #define MOD 1e9 + 7
             ^
0_0_15870758_2263.cpp:45:37: note: in expansion of macro 'MOD'
         if(b & 1) res = (res * a) % MOD;
                                     ^
0_0_15870758_2263.cpp:9:13: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
 #define MOD 1e9 + 7
             ^
0_0_15870758_2263.cpp:46:23: note: in expansion of macro 'MOD'
         a = (a * a) % MOD;
                       ^
0_0_15870758_2263.cpp: In function 'long long int work(bool)':
0_0_15870758_2263.cpp:79:45: error: invalid operands of types 'int' and 'double' to binary 'operator%'
                 temp = (temp + 1) % (MOD - 1);
                                             ^
0_0_15870758_2263.cpp:85:59: error: invalid operands of types 'int' and 'double' to binary 'operator%'
                     temp = (temp + unite(x, v)) % (MOD - 1);
                                                           ^
0_0_15870758_2263.cpp:88:62: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
             if(temp) sum = ((LL)sum + (LL)temp * j % (MOD - 1)) % (MOD - 1);
                                                              ^
0_0_15870758_2263.cpp:9:13: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
 #define MOD 1e9 + 7
             ^
0_0_15870758_2263.cpp:90:40: note: in expansion of macro 'MOD'
         res = res * quickPow(i, sum) % MOD;
                                        ^
0_0_15870758_2263.cpp: In function 'int main()':
0_0_15870758_2263.cpp:9:13: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
 #define MOD 1e9 + 7
             ^
0_0_15870758_2263.cpp:119:72: note: in expansion of macro 'MOD'
         printf("%lld\n", work(false) * quickPow(work(true), MOD - 2) % 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-27 01:13:04, Gzip enabled