Problem | foreveralone |
---|---|
User | pearl333 |
Submission Time | 2025-03-17 23:00:50 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
foreveralone.cpp: In function ‘int main()’:
foreveralone.cpp:12:2: error: ‘set’ was not declared in this scope
12 | set<int> s;
| ^~~
foreveralone.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;
foreveralone.cpp:12:6: error: expected primary-expression before ‘int’
12 | set<int> s;
| ^~~
foreveralone.cpp:17:4: error: ‘s’ was not declared in this scope
17 | s.insert(a);
| ^
foreveralone.cpp:21:10: error: ‘s’ was not declared in this scope
21 | cout<<n-s.size();
| ^