Problem | more_lca |
---|---|
User | user123 |
Submission Time | 2023-09-20 16:49:09 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
more_lca.cpp: In member function ‘int lca::query(int, std::vector<int>)’:
more_lca.cpp:53:34: error: expected primary-expression before ‘]’ token
53 | sort(v.begin(), v.end() [](int x, int y) { return pre[x]<pre[y]; });
| ^
more_lca.cpp:53:36: error: expected primary-expression before ‘int’
53 | sort(v.begin(), v.end() [](int x, int y) { return pre[x]<pre[y]; });
| ^~~
more_lca.cpp:53:43: error: expected primary-expression before ‘int’
53 | sort(v.begin(), v.end() [](int x, int y) { return pre[x]<pre[y]; });
| ^~~