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