Problem | leftright |
---|---|
User | c00dingstudygolden |
Submission Time | 2024-07-06 22:45:53 |
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:15: error: expected primary-expression before ‘.’ token
8 | j = a*.back();
| ^
leftright.cpp:9:11: error: expected primary-expression before ‘.’ token
9 | a*.pop_back();
| ^
leftright.cpp:10:11: error: expected primary-expression before ‘.’ token
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>&, long long int)’
34 | personLine = rotate(personLine, (ll)(personLine.size() / 2.0));
|