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_33618623_21622.cpp: In function 'int fcul(int, int)':
0_0_33618623_21622.cpp:4:13: error: invalid operands of types 'int' and 'double' to binary 'operator%'
 #define mod 1e9+7
             ^
0_0_33618623_21622.cpp:22:40: note: in expansion of macro 'mod'
         else return (a%2==0? a/2*(a-1)%mod:(a-1)/2*a)%mod;
                                        ^
0_0_33618623_21622.cpp:4:13: error: invalid operands of types 'int' and 'double' to binary 'operator%'
 #define mod 1e9+7
             ^
0_0_33618623_21622.cpp:29:25: note: in expansion of macro 'mod'
             A=a*(a-1)%6%mod;
                         ^
0_0_33618623_21622.cpp:4:13: error: invalid operands of types 'int' and 'double' to binary 'operator%'
 #define mod 1e9+7
             ^
0_0_33618623_21622.cpp:30:25: note: in expansion of macro 'mod'
             B=a*(a-2)%6%mod;
                         ^
0_0_33618623_21622.cpp:4:13: error: invalid operands of types 'int' and 'double' to binary 'operator%'
 #define mod 1e9+7
             ^
0_0_33618623_21622.cpp:31:29: note: in expansion of macro 'mod'
             C=(a-1)*(a-2)%6%mod;
                             ^
0_0_33618623_21622.cpp:4:13: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
 #define mod 1e9+7
             ^
0_0_33618623_21622.cpp:32:37: note: in expansion of macro 'mod'
             if(A==0) return A*(a-2)%mod;
                                     ^
0_0_33618623_21622.cpp:4:13: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
 #define mod 1e9+7
             ^
0_0_33618623_21622.cpp:33:42: note: in expansion of macro 'mod'
             else if(B==0) return B*(a-1)%mod;
                                          ^
0_0_33618623_21622.cpp:4:13: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
 #define mod 1e9+7
             ^
0_0_33618623_21622.cpp:34:29: note: in expansion of macro 'mod'
             else return C*a%mod;
                             ^
0_0_33618623_21622.cpp: In function 'int main()':
0_0_33618623_21622.cpp:4:13: error: invalid operands of types 'int' and 'double' to binary 'operator%'
 #define mod 1e9+7
             ^
0_0_33618623_21622.cpp:56:20: note: in expansion of macro 'mod'
   sum = fcul(s, 3)%mod + fcul(s, 2) * f%mod;
                    ^
0_0_33618623_21622.cpp:4:13: error: invalid operands of types 'int' and 'double' to binary 'operator%'
 #define mod 1e9+7
             ^
0_0_33618623_21622.cpp:56:41: note: in expansion of macro 'mod'
   sum = fcul(s, 3)%mod + fcul(s, 2) * f%mod;
                                         ^
0_0_33618623_21622.cpp:4:13: error: invalid operands of types 'std::unordered_set<int>::size_type {aka long long unsigned int}' and 'double' to binary 'operator%'
 #define mod 1e9+7
             ^
0_0_33618623_21622.cpp:67:42: note: in expansion of macro 'mod'
    sum = fcul(s, 2) * (exist.size() + f)%mod + os * s * f+fcul(s,3)%mod;
                                          ^
0_0_33618623_21622.cpp:4:13: error: invalid operands of types 'int' and 'double' to binary 'operator%'
 #define mod 1e9+7
             ^
0_0_33618623_21622.cpp:67:69: note: in expansion of macro 'mod'
    sum = fcul(s, 2) * (exist.size() + f)%mod + os * s * f+fcul(s,3)%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-07-04 01:06:59, Gzip enabled