0_0_15050284_12997.cpp: In function 'void adde(int, int, int)':
0_0_15050284_12997.cpp:11:12: error: 'tot' was not declared in this scope
next[++tot]=g[a]; g[a]=tot; mp[tot]=b; val[tot]=c;
^
0_0_15050284_12997.cpp:11:17: error: 'g' was not declared in this scope
next[++tot]=g[a]; g[a]=tot; mp[tot]=b; val[tot]=c;
^
0_0_15050284_12997.cpp:11:33: error: 'mp' was not declared in this scope
next[++tot]=g[a]; g[a]=tot; mp[tot]=b; val[tot]=c;
^
0_0_15050284_12997.cpp:11:44: error: 'val' was not declared in this scope
next[++tot]=g[a]; g[a]=tot; mp[tot]=b; val[tot]=c;
^
0_0_15050284_12997.cpp: In function 'int gtmin(int, int)':
0_0_15050284_12997.cpp:15:8: error: 'vv' was not declared in this scope
if(vv[a]<vv[b]) return a;
^
0_0_15050284_12997.cpp: In function 'void ins(int, int, int, int, int)':
0_0_15050284_12997.cpp:23:9: error: 'gmin' was not declared in this scope
gmin[no]=b; return;
^
0_0_15050284_12997.cpp:26:5: error: 'gmin' was not declared in this scope
gmin[no]=gtmin(gmin[2*no],gmin[2*no+1]);
^
0_0_15050284_12997.cpp: In function 'void del(int, int, int, int, int)':
0_0_15050284_12997.cpp:33:9: error: 'gmin' was not declared in this scope
gmin[no]=0;
^
0_0_15050284_12997.cpp:37:5: error: 'gmin' was not declared in this scope
gmin[no]=gtmin(gmin[2*no],gmin[2*no+1]);
^
0_0_15050284_12997.cpp: In function 'int getmin(int, int, int, int, int)':
0_0_15050284_12997.cpp:42:29: error: 'gmin' was not declared in this scope
if(l<=ll&&rr<=r) return gmin[no];
^
0_0_15050284_12997.cpp: In function 'void dfs(int, int)':
0_0_15050284_12997.cpp:47:5: error: 'l' was not declared in this scope
l[a]=tot++; s[a]=1;
^
0_0_15050284_12997.cpp:47:10: error: 'tot' was not declared in this scope
l[a]=tot++; s[a]=1;
^
0_0_15050284_12997.cpp:47:17: error: 's' was not declared in this scope
l[a]=tot++; s[a]=1;
^
0_0_15050284_12997.cpp:48:15: error: 'g' was not declared in this scope
for(int i=g[a];i;i=next[i])
^
0_0_15050284_12997.cpp:48:30: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
for(int i=g[a];i;i=next[i])
^
0_0_15050284_12997.cpp:49:10: error: 'mp' was not declared in this scope
if(mp[i]!=b)
^
0_0_15050284_12997.cpp:51:11: error: 'vv' was not declared in this scope
vv[mp[i]]=val[i];
^
0_0_15050284_12997.cpp:51:21: error: 'val' was not declared in this scope
vv[mp[i]]=val[i];
^
0_0_15050284_12997.cpp:52:17: error: 'n' was not declared in this scope
ins(1,n-1,tot,mp[i],1);
^
0_0_15050284_12997.cpp:56:5: error: 'r' was not declared in this scope
r[a]=tot;
^
0_0_15050284_12997.cpp: In function 'void cal(int, int64)':
0_0_15050284_12997.cpp:60:8: error: 'r' was not declared in this scope
if(r[a]==l[a]) ans=max(ans,b);
^
0_0_15050284_12997.cpp:60:14: error: 'l' was not declared in this scope
if(r[a]==l[a]) ans=max(ans,b);
^
0_0_15050284_12997.cpp:60:20: error: 'ans' was not declared in this scope
if(r[a]==l[a]) ans=max(ans,b);
^
0_0_15050284_12997.cpp:61:24: error: 'n' was not declared in this scope
for(int i=getmin(1,n-1,l[a]+1,r[a],1);i;)
^
0_0_15050284_12997.cpp:61:28: error: 'l' was not declared in this scope
for(int i=getmin(1,n-1,l[a]+1,r[a],1);i;)
^
0_0_15050284_12997.cpp:61:35: error: 'r' was not declared in this scope
for(int i=getmin(1,n-1,l[a]+1,r[a],1);i;)
^
0_0_15050284_12997.cpp:63:9: error: 's' was not declared in this scope
s[a]-=s[i];
^
0_0_15050284_12997.cpp:64:27: error: 'vv' was not declared in this scope
cal(i,s[a]*(int64)vv[i]+b);
^
0_0_15050284_12997.cpp: In function 'int main()':
0_0_15050284_12997.cpp:71:23: error: 'n' was not declared in this scope
while(scanf("%d",&n)!=EOF)
^
0_0_15050284_12997.cpp:73:16: error: 'g' was not declared in this scope
memset(g,0,sizeof(g)); tot=0;
^
0_0_15050284_12997.cpp:73:32: error: 'tot' was not declared in this scope
memset(g,0,sizeof(g)); tot=0;
^
0_0_15050284_12997.cpp:75:27: error: 'a' was not declared in this scope
scanf("%d%d%d",&a,&b,&c),
^
0_0_15050284_12997.cpp:75:30: error: 'b' was not declared in this scope
scanf("%d%d%d",&a,&b,&c),
^
0_0_15050284_12997.cpp:75:33: error: 'c' was not declared in this scope
scanf("%d%d%d",&a,&b,&c),
^
0_0_15050284_12997.cpp:77:16: error: 's' was not declared in this scope
memset(s,0,sizeof(s)); tot=0;
^
0_0_15050284_12997.cpp:78:9: error: 'vv' was not declared in this scope
vv[0]=(int)1e9; dfs(1,0);
^
|