Problem | uniquenumbers |
---|---|
User | Hengweezy |
Submission Time | 2024-02-02 13:36:01 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
uniquenumbers.cpp: In function ‘int main()’:
uniquenumbers.cpp:19:7: error: invalid use of non-static member function ‘std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int]’
19 | cout << v.size;
| ~~~~~^~~~~~~~~
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.h:13,
from /usr/include/c++/9/algorithm:71,
from uniquenumbers.cpp:2:
/usr/include/c++/9/bits/stl_vector.h:915:7: note: declared here
915 | size() const _GLIBCXX_NOEXCEPT
| ^~~~