Problem uniquenumbers
User Minjia
Submission Time 2023-11-08 15:18:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

uniquenumbers.cpp: In function ‘int main()’:
uniquenumbers.cpp:9:3: error: ‘set’ was not declared in this scope
9 | set.insert(x);
| ^~~
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:11:10: error: ‘set’ was not declared in this scope
11 | cout << set.size;
| ^~~
uniquenumbers.cpp:11:10: note: ‘std::set’ is defined in header ‘<set>’; did you forget to ‘#include <set>’?