Problem | uniquenumbers_easy |
---|---|
User | Xavier |
Submission Time | 2025-06-18 16:27:34 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
uniquenumbers_easy.cpp: In function ‘int main()’:
uniquenumbers_easy.cpp:12:5: error: ‘set’ was not declared in this scope
12 | set<int> s;
| ^~~
uniquenumbers_easy.cpp:4:1: note: ‘std::set’ is defined in header ‘<set>’; did you forget to ‘#include <set>’?
3 | #include <algorithm>
+++ |+#include <set>
4 | using namespace std;
uniquenumbers_easy.cpp:12:9: error: expected primary-expression before ‘int’
12 | set<int> s;
| ^~~
uniquenumbers_easy.cpp:16:9: error: ‘s’ was not declared in this scope
16 | s.insert(N)
| ^
uniquenumbers_easy.cpp:20:13: error: ‘s’ was not declared in this scope
20 | cout << s.size()
| ^