0_0_21511331_30074.cpp:7:5: error: 'LL' does not name a type
LL w;
^
0_0_21511331_30074.cpp:10:1: error: 'LL' does not name a type
LL val[2], ans;
^
0_0_21511331_30074.cpp: In function 'void add(int, int, int)':
0_0_21511331_30074.cpp:14:12: error: 'struct Edge' has no member named 'w'
E[tot].w = w;
^
0_0_21511331_30074.cpp: In function 'void dfs(int, int)':
0_0_21511331_30074.cpp:25:10: error: 'val' was not declared in this scope
(val[idx] *= E[i].w) %= mod;
^
0_0_21511331_30074.cpp:25:27: error: 'struct Edge' has no member named 'w'
(val[idx] *= E[i].w) %= mod;
^
0_0_21511331_30074.cpp: In function 'int main()':
0_0_21511331_30074.cpp:45:9: error: 'LL' was not declared in this scope
LL ans = 1;
^
0_0_21511331_30074.cpp:56:18: error: 'ans' was not declared in this scope
(ans *= E[i].w) %= mod;
^
0_0_21511331_30074.cpp:56:30: error: 'struct Edge' has no member named 'w'
(ans *= E[i].w) %= mod;
^
0_0_21511331_30074.cpp:66:13: error: 'val' was not declared in this scope
val[0] = val[1] = 1;
^
0_0_21511331_30074.cpp:68:14: error: 'ans' was not declared in this scope
(ans *= (val[0] + val[1]) % mod) %= mod;
^
0_0_21511331_30074.cpp:70:26: error: 'ans' was not declared in this scope
printf("%lld\n", ans);
^
|