Problem brick
User wrizz69
Submission Time 2023-04-21 14:28:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp: In function ‘int32_t main()’:
brick.cpp:10:17: error: invalid use of member function ‘std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::vector<_Tp, _Alloc>::size_type = long unsigned int]’ (did you forget the ‘()’ ?)
10 | while(v.size>0){
| ~~^~~~
| ()
brick.cpp:11:14: error: invalid use of non-static member function ‘std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::vector<_Tp, _Alloc>::size_type = long unsigned int]’
11 | if (v[v.size]>a){
| ^
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,
from /usr/include/c++/9/pstl/glue_algorithm_defs.