0_0_16611543_18785.cpp: In function 'void dfs(int, int)':
0_0_16611543_18785.cpp:13:13: error: invalid operands of types '__gnu_cxx::__promote_2<long long int, int, double, double>::__type {aka double}' and 'int' to binary 'operator%'
#define mod 1000000007
^
0_0_16611543_18785.cpp:40:49: note: in expansion of macro 'mod'
dp[cur]+=pow(f[a[i].t]+1,mod-2)*dp[a[i].t] % mod*f[cur] % mod;
^
|