Problem uniquenumbers
User Yifei1234
Submission Time 2023-06-18 22:08:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

uniquenumbers.cpp: In function ‘int main()’:
uniquenumbers.cpp:9:5: error: ‘unordered’ was not declared in this scope
9 | unordered-_set<int> numbers;
| ^~~~~~~~~
uniquenumbers.cpp:9:15: error: ‘_set’ was not declared in this scope; did you mean ‘fd_set’?
9 | unordered-_set<int> numbers;
| ^~~~
| fd_set
uniquenumbers.cpp:9:20: error: expected primary-expression before ‘int’
9 | unordered-_set<int> numbers;
| ^~~
uniquenumbers.cpp:11:10: error: ‘i’ was not declared in this scope
11 | for (i=0; i<n; i++){
| ^
uniquenumbers.cpp:14:8: error: ‘numbers’ was not declared in this scope
14 | numbers.insert(nn);
| ^~~~~~~
uniquenumbers.cpp:16:7: error: ‘numbers’ was not declared in this scope
16 | cout<<numbers.size();//size of the set is the count of unique numbers