Problem | uniquenumbers |
---|---|
User | Minjia |
Submission Time | 2023-11-08 15:33:37 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
uniquenumbers.cpp: In function ‘int main()’:
uniquenumbers.cpp:9:9: error: ‘N’ was not declared in this scope
9 | cin >> N;
| ^
uniquenumbers.cpp:12:12: error: ‘x’ was not declared in this scope
12 | s.insert(x);
| ^
uniquenumbers.cpp:14: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]’
14 | 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