Problem mindeque
User Red123
Submission Time 2025-08-15 16:03:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mindeque.cpp: In function ‘int main()’:
mindeque.cpp:19:6: error: invalid use of non-static member function ‘void std::deque<_Tp, _Alloc>::pop_back() [with _Tp = long long int; _Alloc = std::allocator<long long int>]’
19 | x.pop_back;
| ~~^~~~~~~~
In file included from /usr/include/c++/9/deque:67,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:68,
from mindeque.cpp:1:
/usr/include/c++/9/bits/stl_deque.h:1628:7: note: declared here
1628 | pop_back() _GLIBCXX_NOEXCEPT
| ^~~~~~~~
mindeque.cpp:30:25: error: invalid use of member function ‘std::deque<_Tp, _Alloc>::size_type std::deque<_Tp, _Alloc>::size() const [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::deque<_Tp, _Alloc>::size_type = long unsigned int]’ (did you forget the ‘()’ ?)
30 | for(int i = 0; i < x.size; i++){
| ~~^~~~