factories.cpp: In function 'int dfssize(int, int)':
factories.cpp:15:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<g[s].size();i++) if(g[s][i]!=f && !vc[g[s][i]]) x+=dfssize(g[s][i],s);
~^~~~~~~~~~~~
factories.cpp: In function 'int dfsc(int, int)':
factories.cpp:22:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<g[s].size();i++) if(g[s][i]!=f && !vc[g[s][i]])
~^~~~~~~~~~~~
factories.cpp: In function 'void dfs(int, int, long long int, int)':
factories.cpp:36:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<g[s].size();i++) if(g[s][i]!=f) dfs(g[s][i],s,dist+c[s][i],po);
~^~~~~~~~~~~~
factories.cpp: In function 'void centrodecomp(int, int, int)':
factories.cpp:46:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<g[tmp].size();i++) if(!vc[g[tmp][i]]) centrodecomp(g[tmp][i],tmp,du+1);
~^~~~~~~~~~~~~~
factories.cpp: In function 'void Init(int, int*, int*, int*)':
factories.cpp:55:7: error: 'opt' was not declared in this scope
fill(opt,opt+MAXN,1000000000000000000LL);
^~~
factories.cpp:55:7: note: suggested alternative: 'op'
fill(opt,opt+MAXN,1000000000000000000LL);
^~~
op
factories.cpp:51:6: warning: unused variable 'root' [-Wunused-variable]
int root;
^~~~
factories.cpp: In function 'long long int Query(int, int*, int, int*)':
factories.cpp:64:17: error: 'opt' was not declared in this scope
while(a!=-1) {opt[a]=min(opt[a],be[X[i]][cnt]); a=p[a]; cnt++;}
^~~
factories.cpp:64:17: note: suggested alternative: 'op'
while(a!=-1) {opt[a]=min(opt[a],be[X[i]][cnt]); a=p[a]; cnt++;}
^~~
op
factories.cpp:69:41: error: 'opt' was not declared in this scope
while(a!=-1) {sk=min(sk,be[Y[i]][cnt]+opt[a]); a=p[a]; cnt++;}
^~~
factories.cpp:69:41: note: suggested alternative: 'op'
while(a!=-1) {sk=min(sk,be[Y[i]][cnt]+opt[a]); a=p[a]; cnt++;}
^~~
op
factories.cpp:74:17: error: 'opt' was not declared in this scope
while(a!=-1) {opt[a]=1000000000000000000LL; a=p[a];}
^~~
factories.cpp:74:17: note: suggested alternative: 'op'
while(a!=-1) {opt[a]=1000000000000000000LL; a=p[a];}
^~~
op