Problem lllontree
User beepbeepsheep
Submission Time 2024-12-16 12:41:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lllontree.cpp:7:36: error: expected identifier before ‘&’ token
7 | void dfsbruh(int node, int parent, &vector<int> oldlis) {
| ^
lllontree.cpp:7:37: error: expected ‘,’ or ‘...’
7 | void dfsbruh(int node, int parent, &vector<int> oldlis) {
| ^~~~~~~~~~~
lllontree.cpp: In function ‘void dfsbruh(int, int, int&)’:
lllontree.cpp:8:23: error: ‘oldlis’ was not declared in this scope
8 | vector<int> lis = oldlis;
| ^~~~~~
lllontree.cpp:22:20: error: invalid initialization of reference of type ‘int&’ from expression of type ‘std::vector<int>’
22 | dfsbruh(i, node, lis);
| ^~~
lllontree.cpp:7:36: note: in passing argument 3 of ‘void dfsbruh(int, int, int&)’
7 | void dfsbruh(int node, int parent, &vector<int> oldlis) {
| ^