0_0_29592717_28653.cpp: In function 'void pushup(int)':
0_0_29592717_28653.cpp:39:30: error: 'max' was not declared in this scope
mx[x]=max(max(mx[l],mx[r]),val[x]);
^
0_0_29592717_28653.cpp:39:38: error: 'max' was not declared in this scope
mx[x]=max(max(mx[l],mx[r]),val[x]);
^
0_0_29592717_28653.cpp:39:38: error: redeclaration of '<typeprefixerror>max'
0_0_29592717_28653.cpp:39:30: note: previous declaration '<typeprefixerror>max'
mx[x]=max(max(mx[l],mx[r]),val[x]);
^
0_0_29592717_28653.cpp: In function 'void pushdown(int)':
0_0_29592717_28653.cpp:47:29: error: 'swap' was not declared in this scope
swap(c[x][0],c[x][1]);
^
0_0_29592717_28653.cpp: In function 'void query(int, int)':
0_0_29592717_28653.cpp:110:55: error: 'printf' was not declared in this scope
rever(u); access(v); splay(v); printf("%d\n",mx[v]);
^
0_0_29592717_28653.cpp: In function 'int main()':
0_0_29592717_28653.cpp:113:26: error: 'scanf' was not declared in this scope
while (~scanf("%d",&n))
^
0_0_29592717_28653.cpp:133:59: error: 'puts' was not declared in this scope
if (!judge(u,v)) link(u,v); else puts("-1");
^
0_0_29592717_28653.cpp:137:65: error: 'puts' was not declared in this scope
if (judge(u,v) && u!=v) cut(u,v); else puts("-1");
^
0_0_29592717_28653.cpp:141:62: error: 'puts' was not declared in this scope
if (judge(u,v)) add(u,v,w); else puts("-1");
^
0_0_29592717_28653.cpp:145:59: error: 'puts' was not declared in this scope
if (judge(u,v)) query(u,v); else puts("-1");
^
0_0_29592717_28653.cpp:148:20: error: 'printf' was not declared in this scope
printf("\n");
^
|