Problem uniquenumbers
User Minjia
Submission Time 2023-11-08 15:36:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

uniquenumbers.cpp: In function ‘int main()’:
uniquenumbers.cpp:10:2: error: expected initializer before ‘cin’
10 | cin >> N;
| ^~~
uniquenumbers.cpp:11:23: error: ‘N’ was not declared in this scope
11 | for (int i = 1; i <= N; i++) {
| ^
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()