| Problem | potatoqueue |
|---|---|
| User | IanGohYifeng |
| Submission Time | 2026-08-28 21:20:56 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
potatoqueue.cpp: In function ‘int find(int)’:
potatoqueue.cpp:18:32: error: expected ‘)’ before ‘;’ token
18 | return dsu[x] = find(dsu[x];)
| ~ ^
| )
potatoqueue.cpp:18:33: error: expected primary-expression before ‘)’ token
18 | return dsu[x] = find(dsu[x];)
| ^
potatoqueue.cpp: In function ‘void join(int)’:
potatoqueue.cpp:40:12: error: invalid use of non-static member function ‘void std::vector<_Tp, _Alloc>::pop_back() [with _Tp = int; _Alloc = std::allocator<int>]’
40 | st.pop_back;
| ~~~^~~~~~~~
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-g