0_0_26073936_32629.cpp:3:1: error: expected initializer before 'using'
using namespace std;
^
0_0_26073936_32629.cpp:10:1: error: 'll' does not name a type
ll sz[maxn];
^
0_0_26073936_32629.cpp:11:1: error: 'll' does not name a type
ll f[maxn];
^
0_0_26073936_32629.cpp:12:1: error: 'll' does not name a type
ll ans;
^
0_0_26073936_32629.cpp: In function 'void dfs(int, int)':
0_0_26073936_32629.cpp:23:5: error: 'sz' was not declared in this scope
sz[root]=1;
^
0_0_26073936_32629.cpp:30:9: error: 'ans' was not declared in this scope
ans=(ans+(n-sz[to])%mod * sz[to]%mod *value%mod);
^
0_0_26073936_32629.cpp: In function 'int main()':
0_0_26073936_32629.cpp:36:6: error: 'f' was not declared in this scope
f[0]=1;
^
0_0_26073936_32629.cpp:42:17: error: 'sz' was not declared in this scope
memset(sz,0,sizeof(sz));
^
0_0_26073936_32629.cpp:44:10: error: 'ans' was not declared in this scope
ans=0;
^
0_0_26073936_32629.cpp:51:26: error: 'll' was not declared in this scope
printf("%lld\n",(ll)((2*f[n-1]%mod)*(ans%mod))%mod);
^
|