Problem | uniquenumbers |
---|---|
User | Ningja |
Submission Time | 2023-11-08 14:05:55 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
uniquenumbers.cpp: In function ‘int main()’:
uniquenumbers.cpp:5:2: error: ‘set’ was not declared in this scope
5 | 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:5:7: error: expected primary-expression before ‘int’
5 | set <int> s;
| ^~~
uniquenumbers.cpp:10:7: error: ‘i’ was not declared in this scope
10 | for (i=0; i<n; i++) {
| ^
uniquenumbers.cpp:12:3: error: ‘s’ was not declared in this scope
12 | s.insert(a);
| ^
uniquenumbers.cpp:14:7: error: ‘i’ was not declared in this scope
14 | for (i=1; i<n; i++) {
| ^
uniquenumbers.cpp:15:12: error: ‘s’ was not declared in this scope
15 | int b1 = s.find(i);
| ^