Problem uniquenumbers
User jambusk
Submission Time 2025-06-18 16:43:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

uniquenumbers.cpp: In function ‘int main()’:
uniquenumbers.cpp:9:23: error: conflicting declaration ‘std::unordered_set<std::__cxx11::basic_string<char> > s’
9 | unordered_set<string>s;
| ^
uniquenumbers.cpp:7:11: note: previous declaration as ‘std::set<int> s’
7 | set<int> s;
| ^
uniquenumbers.cpp:13:13: error: no matching function for call to ‘std::set<int>::insert(std::string&)’
13 | s.insert(a);
| ^
In file included from /usr/include/c++/9/set:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:87,
from uniquenumbers.cpp:1:
/usr/include/c++/9/bits/stl_set.h:509:7: note: candidate: ‘std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _C