Problem sequence_apio23
User Pan
Submission Time 2024-07-29 22:02:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sequence_apio23.cpp:74:9: error: expected constructor, destructor, or type conversion before ‘,’ token
74 | }; *root, *root2;
| ^
sequence_apio23.cpp:74:17: error: expected constructor, destructor, or type conversion before ‘;’ token
74 | }; *root, *root2;
| ^
sequence_apio23.cpp: In function ‘int sequence(int, std::vector<int>)’:
sequence_apio23.cpp:85:2: error: ‘root’ was not declared in this scope
85 | root = new node(0, n); root2 = new node(0, n);
| ^~~~
sequence_apio23.cpp:85:26: error: ‘root2’ was not declared in this scope
85 | root = new node(0, n); root2 = new node(0, n);
| ^~~~~