Problem | leftright |
---|---|
User | c00dingstudygolden |
Submission Time | 2024-07-06 22:46:13 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
leftright.cpp: In function ‘std::deque<long long int> rotate(long long int*, long long int)’:
leftright.cpp:8:16: error: request for member ‘back’ in ‘a’, which is of non-class type ‘long long int*’
8 | j = *a.back();
| ^~~~
leftright.cpp:9:12: error: request for member ‘pop_back’ in ‘a’, which is of non-class type ‘long long int*’
9 | *a.pop_back();
| ^~~~~~~~
leftright.cpp:10:12: error: request for member ‘push_front’ in ‘a’, which is of non-class type ‘long long int*’
10 | *a.push_front(j);
| ^~~~~~~~~~
leftright.cpp:12:12: error: could not convert ‘a’ from ‘long long int*’ to ‘std::deque<long long int>’
12 | return a;
| ^
| |
| long long int*
leftright.cpp: In function ‘int main()’:
leftright.cpp:34:74: error: no matching function for call to ‘rotate(std::deque<long long int