| Problem | leftright |
|---|---|
| User | R9q5P8 |
| Submission Time | 2026-11-05 10:49:02 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
leftright.cpp: In function ‘int main()’:
leftright.cpp:16:19: error: invalid use of member function ‘std::deque<_Tp, _Alloc>::size_type std::deque<_Tp, _Alloc>::size() const [with _Tp = int; _Alloc = std::allocator<int>; std::deque<_Tp, _Alloc>::size_type = long unsigned int]’ (did you forget the ‘()’ ?)
16 | if (r.size()>l.size) { l.push_back(r[0]); r.pop_front(); }
| ~~^~~~
| ()
leftright.cpp:20:10: error: no match for ‘operator^’ (operand types are ‘std::deque<int>’ and ‘std::deque<int>’)
20 | r = r ^ l;
| ~ ^ ~
| | |
| | deque<[...]>
| deque<[...]>
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:45,
from leftright.cpp:1:
/usr/include/c++/9/cstddef:179:3: note: candidate: ‘constexpr std::byte std::operator^(std::byte, std::byte)’
179