0_0_36670316_22482.cpp: In function 'int update(int, int, int, int, int)':
0_0_36670316_22482.cpp:40:11: error: no match for 'operator[]' (operand types are 'treenode' and 'int')
rt.tim=rt[rt.l].tim+rt[rt.r].tim;
^
0_0_36670316_22482.cpp:40:24: error: no match for 'operator[]' (operand types are 'treenode' and 'int')
rt.tim=rt[rt.l].tim+rt[rt.r].tim;
^
0_0_36670316_22482.cpp: In function 'int main()':
0_0_36670316_22482.cpp:63:9: error: 'v' was not declared in this scope
b=0,v=vis[a],p=pos[a];
^
0_0_36670316_22482.cpp:70:4: error: 'flag' was not declared in this scope
flag=1;
^
|