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;
^
|