0_0_33031381_16370.cpp: In function 'int main()':
0_0_33031381_16370.cpp:50:52: error: 'scan_d' was not declared in this scope
for (int i = 1; i <= n; i++) w[i] = scan_d();
^
0_0_33031381_16370.cpp:62:13: error: expected ';' before 'int'
int common = lca(s, t);
^
0_0_33031381_16370.cpp:64:38: error: 'common' was not declared in this scope
for (int cur = s; cur != common; cur = fa[cur][0])
^
0_0_33031381_16370.cpp:68:38: error: 'common' was not declared in this scope
for (int cur = t; cur != common; cur = fa[cur][0])
^
0_0_33031381_16370.cpp:72:19: error: 'common' was not declared in this scope
if (w[common] >= a && w[common] <= b) ans += (LL) w[common];
^
0_0_33031381_16370.cpp:73:28: error: 'cnt' was not declared in this scope
printf("%lld", cnt)
^
|