Problem leftright
User c00dingstudygolden
Submission Time 2024-07-06 22:50:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

leftright.cpp: In function ‘std::deque<long long int> rotate(std::deque<long long int>, long long int)’:
leftright.cpp:8:21: error: invalid type argument of unary ‘*’ (have ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’})
8 | j = *a.back();
| ^
leftright.cpp:9:20: error: void value not ignored as it ought to be
9 | *a.pop_back();
| ~~~~~~~~~~^~
leftright.cpp:10:22: error: void value not ignored as it ought to be
10 | *a.push_front(j);
| ~~~~~~~~~~~~^~~