Problem | uniquenumbers |
---|---|
User | Suki |
Submission Time | 2023-11-26 13:42:16 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
uniquenumbers.cpp: In function ‘int main()’:
uniquenumbers.cpp:6:2: error: ‘set’ was not declared in this scope
6 | set<int> mySet;
| ^~~
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:6:6: error: expected primary-expression before ‘int’
6 | set<int> mySet;
| ^~~
uniquenumbers.cpp:8:7: error: ‘i’ was not declared in this scope
8 | for (i=1; i <= N; i++) {
| ^
uniquenumbers.cpp:11:3: error: ‘mySet’ was not declared in this scope
11 | mySet.insert(n);
| ^~~~~
uniquenumbers.cpp:13:10: error: ‘mySet’ was not declared in this scope
13 | cout << mySet.size()
| ^~~~~