Problem uniquenumbers
User teyyf
Submission Time 2024-06-06 15:35:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

uniquenumbers.cpp: In function ‘int main()’:
uniquenumbers.cpp:8:5: error: ‘set’ was not declared in this scope
8 | set<int> s;
| ^~~
uniquenumbers.cpp:2:1: note: ‘std::set’ is defined in header ‘<set>’; did you forget to ‘#include <set>’?
1 | #include <iostream>
+++ |+#include <set>
2 | using namespace std;
uniquenumbers.cpp:8:9: error: expected primary-expression before ‘int’
8 | set<int> s;
| ^~~
uniquenumbers.cpp:13:9: error: ‘s’ was not declared in this scope
13 | s.insert(x);
| ^
uniquenumbers.cpp:16:13: error: ‘s’ was not declared in this scope
16 | cout << s.size()
| ^