Problem cousin
User zyq69
Submission Time 2023-03-24 11:47:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cousin.cpp:8:23: error: expected unqualified-id before ‘int’
8 | int preorder[200010], int pos[200010];
| ^~~
cousin.cpp:15:26: error: expected ‘;’ at end of member declaration
15 | node(node *l, node *r) val(0), l(l), r(r) {}
| ^
| ;
cousin.cpp:15:32: error: expected identifier before numeric constant
15 | node(node *l, node *r) val(0), l(l), r(r) {}
| ^
cousin.cpp:15:32: error: expected ‘,’ or ‘...’ before numeric constant
cousin.cpp:15:33: error: ISO C++ forbids declaration of ‘val’ with no type [-fpermissive]
15 | node(node *l, node *r) val(0), l(l), r(r) {}
| ^
cousin.cpp:15:34: error: ‘int node::val(int)’ conflicts with a previous declaration
15 | node(node *l, node *r) val(0), l(l), r(r) {}
| ^
c