Problem wrongreverse
User baominh
Submission Time 2025-06-20 13:39:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

wrongreverse.cpp: In function ‘int main()’:
wrongreverse.cpp:15:12: error: request for member ‘push_back’ in ‘listlist’, which is of non-class type ‘std::deque<long long int> [a]’
15 | listlist.push_back(b);
| ^~~~~~~~~
wrongreverse.cpp:21:17: error: request for member ‘front’ in ‘listlist’, which is of non-class type ‘std::deque<long long int> [a]’
21 | if (listlist.front() == listlist.back()){
| ^~~~~
wrongreverse.cpp:21:37: error: request for member ‘back’ in ‘listlist’, which is of non-class type ‘std::deque<long long int> [a]’
21 | if (listlist.front() == listlist.back()){
| ^~~~
wrongreverse.cpp:22:14: error: request for member ‘pop_front’ in ‘listlist’, which is of non-class type ‘std::deque<long long int> [a]’
22 | listlist.pop_front();
| ^~~~~~~~~
wrongreverse.cpp:23:14: error: request for mem