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