Problem brick
User sthe2nd
Submission Time 2024-07-29 14:14:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp: In function ‘int main()’:
brick.cpp:17:26: error: invalid use of member function ‘std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::size_type = long unsigned int]’ (did you forget the ‘()’ ?)
17 | while (stackofbricks.size > 0){
| ~~~~~~~~~~~~~~^~~~
| ()
brick.cpp:18:36: error: expected primary-expression before ‘<<’ token
18 | cout<<stackofbricks.back();<<endl;
| ^~