Problem uniquenumbers
User nothing
Submission Time 2023-06-30 20:36:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

uniquenumbers.cpp: In function ‘int main()’:
uniquenumbers.cpp:19:7: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘std::unordered_set<std::__cxx11::basic_string<char> >::size_type’ {aka ‘long unsigned int’})
19 | cout >> setNums.size();
| ~~~~ ^~ ~~~~~~~~~~~~~~
| | |
| | std::unordered_set<std::__cxx11::basic_string<char> >::size_type {aka long unsigned int}
| std::ostream {aka std::basic_ostream<char>}
uniquenumbers.cpp:19:7: note: candidate: ‘operator>>(int, std::unordered_set<std::__cxx11::basic_string<char> >::size_type {aka long unsigned int})’ <built-in>
19 | cout >> setNums.size();
| ~~~~~^~~~~~~~~~~~~~~~~
uniquenumbers.cpp:19:7: note: no known conversion for argument 1 from ‘std::ostream’ {aka ‘std::basic_ostream<char>’} to ‘int