Problem uniquenumbers
User Elaine
Submission Time 2023-02-18 19:44:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

uniquenumbers.cpp: In function ‘int main()’:
uniquenumbers.cpp:9:17: error: ‘str’ was not declared in this scope; did you mean ‘std’?
9 | unordered_set<str> s;
| ^~~
| std
uniquenumbers.cpp:9:20: error: template argument 1 is invalid
9 | unordered_set<str> s;
| ^
uniquenumbers.cpp:9:20: error: template argument 2 is invalid
uniquenumbers.cpp:9:20: error: template argument 3 is invalid
uniquenumbers.cpp:9:20: error: template argument 4 is invalid
uniquenumbers.cpp:12:7: error: request for member ‘insert’ in ‘s’, which is of non-class type ‘int’
12 | s.insert(N);
| ^~~~~~
uniquenumbers.cpp:14:13: error: request for member ‘size’ in ‘s’, which is of non-class type ‘int’
14 | cout << s.size();
| ^~~~