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