0_0_33693124_3264.cpp: In function 'void init()':
0_0_33693124_3264.cpp:4:13: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
#define mod 1e9+7
^
0_0_33693124_3264.cpp:29:48: note: in expansion of macro 'mod'
for(int i=1;i<=200010;i++) mi[i]=mi[i-1]*2%mod;
^
0_0_33693124_3264.cpp:30:20: error: 'n' was not declared in this scope
for(int i=0;i<=n;i++)
^
0_0_33693124_3264.cpp:33:9: error: 'siz_ans' was not declared in this scope
siz_ans[i]=0;
^
0_0_33693124_3264.cpp:34:3: error: 'ans' was not declared in this scope
ans[i]=0;
^
0_0_33693124_3264.cpp: In function 'void dfs(int)':
0_0_33693124_3264.cpp:4:13: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
#define mod 1e9+7
^
0_0_33693124_3264.cpp:50:39: note: in expansion of macro 'mod'
ans1[c]=(ans1[c]+ans1[po.to])%mod;//加上后边一个点的权值
^
0_0_33693124_3264.cpp:51:45: error: 'struct edge' has no member named 'w'
ans1[c]=(ans1[c]+back0[po.to]*mi[po.w]%mod)%mod; //加上到后边那个点的权值
^
0_0_33693124_3264.cpp: In function 'void summ(int, int, int)':
0_0_33693124_3264.cpp:61:12: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
ans2[c]%=mod;
^
0_0_33693124_3264.cpp:61:12: error: in evaluation of 'operator%=(long long int, double)'
0_0_33693124_3264.cpp:62:8: error: 'w' was not declared in this scope
if(w[c]) aans=(aans+ans2[c])%mod;
^
0_0_33693124_3264.cpp:4:13: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
#define mod 1e9+7
^
0_0_33693124_3264.cpp:62:34: note: in expansion of macro 'mod'
if(w[c]) aans=(aans+ans2[c])%mod;
^
0_0_33693124_3264.cpp: In function 'int main()':
0_0_33693124_3264.cpp:90:18: error: 'u' was not declared in this scope
cin>>u>>v;
^
0_0_33693124_3264.cpp:90:21: error: 'v' was not declared in this scope
cin>>u>>v;
^
0_0_33693124_3264.cpp:106:9: error: 'fans' was not declared in this scope
fans=0;
^
|