0_0_38663353_11400.cpp: In function 'void dfs(int, int)':
0_0_38663353_11400.cpp:7:15: error: 'f' was not declared in this scope
7 | if(fa!=0) f[x]=query(-1e9,1e9,rt[x],sum[x])+sum[x]*sum[x]-2*l*sum[x]+l*l;
| ^
0_0_38663353_11400.cpp:7:35: error: 'rt' was not declared in this scope
7 | if(fa!=0) f[x]=query(-1e9,1e9,rt[x],sum[x])+sum[x]*sum[x]-2*l*sum[x]+l*l;
| ^~
0_0_38663353_11400.cpp:7:41: error: 'sum' was not declared in this scope
7 | if(fa!=0) f[x]=query(-1e9,1e9,rt[x],sum[x])+sum[x]*sum[x]-2*l*sum[x]+l*l;
| ^~~
0_0_38663353_11400.cpp:7:20: error: 'query' was not declared in this scope
7 | if(fa!=0) f[x]=query(-1e9,1e9,rt[x],sum[x])+sum[x]*sum[x]-2*l*sum[x]+l*l;
| ^~~~~
0_0_38663353_11400.cpp:8:10: error: 'f' was not declared in this scope
8 | else f[x]=0;
| ^
0_0_38663353_11400.cpp:9:5: error: 'k' was not declared in this scope
9 | k[x]=-2*sum[x];
| ^
0_0_38663353_11400.cpp:9:13: error: 'sum' was not declared in this scope
9 | k[x]=-2*sum[x];
| ^~~
0_0_38663353_11400.cpp:10:5: error: 'b' was not declared in this scope
10 | b[x]=f[x]+sum[x]*sum[x]+2*l*sum[x];
| ^
0_0_38663353_11400.cpp:10:10: error: 'f' was not declared in this scope
10 | b[x]=f[x]+sum[x]*sum[x]+2*l*sum[x];
| ^
0_0_38663353_11400.cpp:13:5: error: 'rt' was not declared in this scope
13 | rt[x]=update(-1e9,1e9,rt[x],x);
| ^~
0_0_38663353_11400.cpp:13:11: error: 'update' was not declared in this scope
13 | rt[x]=update(-1e9,1e9,rt[x],x);
| ^~~~~~
0_0_38663353_11400.cpp:16:24: error: 'head' was not declared in this scope
16 | for(register int i=head[x];i;i=p[i].nxt){
| ^~~~
0_0_38663353_11400.cpp:16:36: error: 'p' was not declared in this scope
16 | for(register int i=head[x];i;i=p[i].nxt){
| ^
0_0_38663353_11400.cpp:25:20: error: 'min' was not declared in this scope
25 | if(tot==0) ans=min(ans,f[x]);
| ^~~
0_0_38663353_11400.cpp: In function 'void clear()':
0_0_38663353_11400.cpp:28:8: error: 'i' was not declared in this scope
28 | fr(i,1,nod) e[i].id=e[i].ls=e[i].rs=0;
| ^
0_0_38663353_11400.cpp:28:12: error: 'nod' was not declared in this scope
28 | fr(i,1,nod) e[i].id=e[i].ls=e[i].rs=0;
| ^~~
0_0_38663353_11400.cpp:28:5: error: 'fr' was not declared in this scope
28 | fr(i,1,nod) e[i].id=e[i].ls=e[i].rs=0;
| ^~
0_0_38663353_11400.cpp:30:12: error: 'n' was not declared in this scope
30 | fr(i,1,n) sum[i]=k[i]=b[i]=rt[i]=0;
| ^
0_0_38663353_11400.cpp:32:5: error: 'b' was not declared in this scope
32 | b[0]=inf;
| ^
0_0_38663353_11400.cpp:32:10: error: 'inf' was not declared in this scope; did you mean 'int'?
32 | b[0]=inf;
| ^~~
| int
0_0_38663353_11400.cpp: In function 'void work()':
0_0_38663353_11400.cpp:36:5: error: 'n' was not declared in this scope
36 | n=read();l=read();
| ^
0_0_38663353_11400.cpp:36:7: error: 'read' was not declared in this scope
36 | n=read();l=read();
| ^~~~
0_0_38663353_11400.cpp:37:13: error: 'cnt' was not declared in this scope; did you mean 'int'?
37 | clear();cnt=0;
| ^~~
| int
0_0_38663353_11400.cpp:38:8: error: 'i' was not declared in this scope
38 | fr(i,1,n) head[i]=0;
| ^
0_0_38663353_11400.cpp:38:5: error: 'fr' was not declared in this scope
38 | fr(i,1,n) head[i]=0;
| ^~
0_0_38663353_11400.cpp:56:9: error: 'dfs1' was not declared in this scope; did you mean 'dfs'?
56 | dfs1(x,0);
| ^~~~
| dfs
0_0_38663353_11400.cpp:58:9: error: 'writeln' was not declared in this scope
58 | writeln(ans);
| ^~~~~~~
0_0_38663353_11400.cpp: In function 'void init()':
0_0_38663353_11400.cpp:63:7: error: 'read' was not declared in this scope
63 | t=read();
| ^~~~
|