0_0_38038309_544.cpp:7:5: error: 'll' does not name a type
ll cost;
^
0_0_38038309_544.cpp:10:1: error: 'll' does not name a type
ll inv[maxn], f[maxn], ans;
^
0_0_38038309_544.cpp:12:31: error: 'll' has not been declared
inline void add(int u, int v, ll cost) {
^
0_0_38038309_544.cpp: In function 'void add(int, int, int)':
0_0_38038309_544.cpp:13:29: error: 'struct Edge' has no member named 'cost'
e[++tot].to = v, e[tot].cost = cost, e[tot].nxt = head[u], head[u] = tot;
^
0_0_38038309_544.cpp: In function 'void dfs(int, int)':
0_0_38038309_544.cpp:21:9: error: 'f' was not declared in this scope
f[son] = e[i].cost;
^
0_0_38038309_544.cpp:21:23: error: 'struct Edge' has no member named 'cost'
f[son] = e[i].cost;
^
0_0_38038309_544.cpp:25:13: error: 'ans' was not declared in this scope
if (fa) ans = (ans + (ll)(n - size[cur]) * size[cur] % mod * f[cur] % mod) % mod;
^
0_0_38038309_544.cpp:25:27: error: 'll' was not declared in this scope
if (fa) ans = (ans + (ll)(n - size[cur]) * size[cur] % mod * f[cur] % mod) % mod;
^
0_0_38038309_544.cpp:25:66: error: 'f' was not declared in this scope
if (fa) ans = (ans + (ll)(n - size[cur]) * size[cur] % mod * f[cur] % mod) % mod;
^
0_0_38038309_544.cpp: In function 'int main()':
0_0_38038309_544.cpp:29:5: error: 'inv' was not declared in this scope
inv[0] = 1;
^
0_0_38038309_544.cpp:30:9: error: 'i' was not declared in this scope
rep(i, 1, maxn - 5) inv[i] = inv[i - 1] * i % mod;
^
0_0_38038309_544.cpp:30:23: error: 'rep' was not declared in this scope
rep(i, 1, maxn - 5) inv[i] = inv[i - 1] * i % mod;
^
0_0_38038309_544.cpp:32:27: error: 'scanf' was not declared in this scope
while (~scanf("%d", &n)) {
^
0_0_38038309_544.cpp:33:9: error: 'ans' was not declared in this scope
ans = tot = 0;
^
0_0_38038309_544.cpp:44:49: error: 'writeln' was not declared in this scope
writeln(ans * inv[n - 1] % mod * 2 % mod);
^
|