Problem | uniquenumbers |
---|---|
User | Minjia |
Submission Time | 2023-11-08 15:36:30 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
uniquenumbers.cpp: In function ‘int main()’:
uniquenumbers.cpp:15:7: error: invalid use of non-static member function ‘std::set<_Key, _Compare, _Alloc>::size_type std::set<_Key, _Compare, _Alloc>::size() const [with _Key = std::__cxx11::basic_string<char>; _Compare = std::less<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; std::set<_Key, _Compare, _Alloc>::size_type = long unsigned int]’
15 | cout << s.size;
| ~~~~~^~~~~~~~~
In file included from /usr/include/c++/9/set:61,
from uniquenumbers.cpp:1:
/usr/include/c++/9/bits/stl_set.h:419:7: note: declared here
419 | size() const _GLIBCXX_NOEXCEPT
| ^~~~